1
1
import Link from "next/link" ;
2
2
import type { IframeHTMLAttributes } from "react" ;
3
- import React , { useState , useEffect } from "react" ;
3
+ import React , { useEffect , useState } from "react" ;
4
4
5
5
import useAddAppMutation from "@calcom/app-store/_utils/useAddAppMutation" ;
6
6
import { AppDependencyComponent , InstallAppButton } from "@calcom/app-store/components" ;
@@ -10,8 +10,7 @@ import { APP_NAME, COMPANY_NAME, SUPPORT_MAIL_ADDRESS } from "@calcom/lib/consta
10
10
import { useLocale } from "@calcom/lib/hooks/useLocale" ;
11
11
import { trpc } from "@calcom/trpc/react" ;
12
12
import type { App as AppType } from "@calcom/types/App" ;
13
- import { Badge , Button , showToast , SkeletonButton , SkeletonText } from "@calcom/ui" ;
14
- import { BookOpen , Check , ExternalLink , File , Flag , Mail , Shield } from "@calcom/ui/components/icon" ;
13
+ import { Badge , Button , Icon , SkeletonButton , SkeletonText , showToast } from "@calcom/ui" ;
15
14
16
15
import { InstallAppButtonChild } from "./InstallAppButtonChild" ;
17
16
@@ -196,7 +195,7 @@ export const AppPage = ({
196
195
isGlobal ||
197
196
( existingCredentials . length > 0 && allowedMultipleInstalls ? (
198
197
< div className = "flex space-x-3" >
199
- < Button StartIcon = { Check } color = "secondary" disabled >
198
+ < Button StartIcon = "check" color = "secondary" disabled >
200
199
{ existingCredentials . length > 0
201
200
? t ( "active_install" , { count : existingCredentials . length } )
202
201
: t ( "default" ) }
@@ -323,7 +322,7 @@ export const AppPage = ({
323
322
rel = "noreferrer"
324
323
className = "text-emphasis text-sm font-normal no-underline hover:underline"
325
324
href = { docs } >
326
- < BookOpen className = "text-subtle -mt-1 mr-1 inline h-4 w-4" />
325
+ < Icon name = "book-open" className = "text-subtle -mt-1 mr-1 inline h-4 w-4" />
327
326
{ t ( "documentation" ) }
328
327
</ a >
329
328
</ li >
@@ -335,7 +334,7 @@ export const AppPage = ({
335
334
rel = "noreferrer"
336
335
className = "text-emphasis font-normal no-underline hover:underline"
337
336
href = { website } >
338
- < ExternalLink className = "text-subtle -mt-px mr-1 inline h-4 w-4" />
337
+ < Icon name = "external-link" className = "text-subtle -mt-px mr-1 inline h-4 w-4" />
339
338
{ website . replace ( "https://" , "" ) }
340
339
</ a >
341
340
</ li >
@@ -347,7 +346,7 @@ export const AppPage = ({
347
346
rel = "noreferrer"
348
347
className = "text-emphasis font-normal no-underline hover:underline"
349
348
href = { `mailto:${ email } ` } >
350
- < Mail className = "text-subtle -mt-px mr-1 inline h-4 w-4" />
349
+ < Icon name = "mail" className = "text-subtle -mt-px mr-1 inline h-4 w-4" />
351
350
352
351
{ email }
353
352
</ a >
@@ -360,7 +359,7 @@ export const AppPage = ({
360
359
rel = "noreferrer"
361
360
className = "text-emphasis font-normal no-underline hover:underline"
362
361
href = { tos } >
363
- < File className = "text-subtle -mt-px mr-1 inline h-4 w-4" />
362
+ < Icon name = "file" className = "text-subtle -mt-px mr-1 inline h-4 w-4" />
364
363
{ t ( "terms_of_service" ) }
365
364
</ a >
366
365
</ li >
@@ -372,7 +371,7 @@ export const AppPage = ({
372
371
rel = "noreferrer"
373
372
className = "text-emphasis font-normal no-underline hover:underline"
374
373
href = { privacy } >
375
- < Shield className = "text-subtle -mt-px mr-1 inline h-4 w-4" />
374
+ < Icon name = "shield" className = "text-subtle -mt-px mr-1 inline h-4 w-4" />
376
375
{ t ( "privacy_policy" ) }
377
376
</ a >
378
377
</ li >
@@ -383,7 +382,7 @@ export const AppPage = ({
383
382
{ t ( "every_app_published" , { appName : APP_NAME , companyName : COMPANY_NAME } ) }
384
383
</ span >
385
384
< a className = "mt-2 block text-xs text-red-500" href = { `mailto:${ SUPPORT_MAIL_ADDRESS } ` } >
386
- < Flag className = "inline h-3 w-3" /> { t ( "report_app" ) }
385
+ < Icon name = "flag" className = "inline h-3 w-3" /> { t ( "report_app" ) }
387
386
</ a >
388
387
</ div >
389
388
</ div >
0 commit comments