@@ -11,18 +11,18 @@ import IconBrowser from "@vector-im/compound-design-tokens/assets/web/icons/web-
1111import type { FunctionComponent , SVGProps } from "react" ;
1212import { useTranslation } from "react-i18next" ;
1313
14- import { DeviceType } from "../../gql/graphql" ;
14+ import type { DeviceType } from "../../gql/graphql" ;
1515
1616import styles from "./DeviceTypeIcon.module.css" ;
1717
1818const deviceTypeToIcon : Record <
1919 DeviceType ,
2020 FunctionComponent < SVGProps < SVGSVGElement > & { title ?: string | undefined } >
2121> = {
22- [ DeviceType . Unknown ] : IconUnknown ,
23- [ DeviceType . Pc ] : IconComputer ,
24- [ DeviceType . Mobile ] : IconMobile ,
25- [ DeviceType . Tablet ] : IconBrowser ,
22+ UNKNOWN : IconUnknown ,
23+ PC : IconComputer ,
24+ MOBILE : IconMobile ,
25+ TABLET : IconBrowser ,
2626} ;
2727
2828const DeviceTypeIcon : React . FC < { deviceType : DeviceType } > = ( {
@@ -33,10 +33,10 @@ const DeviceTypeIcon: React.FC<{ deviceType: DeviceType }> = ({
3333 const Icon = deviceTypeToIcon [ deviceType ] ;
3434
3535 const deviceTypeToLabel : Record < DeviceType , string > = {
36- [ DeviceType . Unknown ] : t ( "frontend.device_type_icon_label.unknown" ) ,
37- [ DeviceType . Pc ] : t ( "frontend.device_type_icon_label.pc" ) ,
38- [ DeviceType . Mobile ] : t ( "frontend.device_type_icon_label.mobile" ) ,
39- [ DeviceType . Tablet ] : t ( "frontend.device_type_icon_label.tablet" ) ,
36+ UNKNOWN : t ( "frontend.device_type_icon_label.unknown" ) ,
37+ PC : t ( "frontend.device_type_icon_label.pc" ) ,
38+ MOBILE : t ( "frontend.device_type_icon_label.mobile" ) ,
39+ TABLET : t ( "frontend.device_type_icon_label.tablet" ) ,
4040 } ;
4141
4242 const label = deviceTypeToLabel [ deviceType ] ;
0 commit comments