diff --git a/package-lock.json b/package-lock.json index 7341944..aa54aa1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ucentral-client", - "version": "2.8.0(4)", + "version": "2.8.0(5)", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ucentral-client", - "version": "2.8.0(4)", + "version": "2.8.0(5)", "license": "ISC", "dependencies": { "@chakra-ui/icons": "^2.0.11", diff --git a/package.json b/package.json index 2b15589..292ac19 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ucentral-client", - "version": "2.8.0(4)", + "version": "2.8.0(5)", "description": "", "private": true, "main": "index.tsx", diff --git a/src/components/CompactTaskDisplay/index.tsx b/src/components/CompactTaskDisplay/index.tsx deleted file mode 100644 index 6e41137..0000000 --- a/src/components/CompactTaskDisplay/index.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import * as React from 'react'; -import { Badge, HStack, Stat, StatHelpText, StatLabel, StatNumber } from '@chakra-ui/react'; -import { useTranslation } from 'react-i18next'; -import FormattedDate from 'components/InformationDisplays/FormattedDate'; - -const test = new Date().getTime() / 1000; - -type Props = { - date?: number; - venue?: string; - type?: string; - hideStatus?: boolean; -}; -const CompactTaskDisplay = ({ date, venue, type, hideStatus }: Props) => { - const { t } = useTranslation(); - - return ( - - {!hideStatus && {t('common.success')}} - - - - - {type ?? 'Installation'} - {venue ?? 'Ally Detroit Center'} - - - ); -}; - -export default CompactTaskDisplay; diff --git a/src/pages/Devices/ListCard/index.tsx b/src/pages/Devices/ListCard/index.tsx index 72c0b0c..8745a52 100644 --- a/src/pages/Devices/ListCard/index.tsx +++ b/src/pages/Devices/ListCard/index.tsx @@ -118,7 +118,7 @@ const DeviceListCard = () => { device.connected ? t('common.connected') : t('common.disconnected') } ${device.restrictedDevice ? `- ${t('devices.restricted')}` : ''}`} > - {ICONS[device.deviceType]} + {ICONS[device.deviceType] ?? ICONS.AP}