Skip to content

Commit

Permalink
refactor(28441): remove placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
vanch3d committed Dec 5, 2024
1 parent 2328789 commit 28ed85a
Showing 1 changed file with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
import { FC } from 'react'
import { useTranslation } from 'react-i18next'
import {
Alert,
AlertDescription,
AlertIcon,
Avatar,
Box,
Card,
CardBody,
CardHeader,
Flex,
Heading,
Text,
} from '@chakra-ui/react'
import { LuUpload } from 'react-icons/lu'

import IconButton from '@/components/Chakra/IconButton.tsx'
import { Avatar, Box, Card, CardHeader, Flex, Heading, Text } from '@chakra-ui/react'
import { DeviceMetadata } from '@/modules/Workspace/types.ts'

interface DeviceMetadataProps {
protocolAdapter?: DeviceMetadata
}

const DeviceMetadataViewer: FC<DeviceMetadataProps> = ({ protocolAdapter }) => {
const { t } = useTranslation()

return (
<Card size="sm">
<CardHeader>
Expand All @@ -36,15 +18,8 @@ const DeviceMetadataViewer: FC<DeviceMetadataProps> = ({ protocolAdapter }) => {
<Text>{protocolAdapter?.category?.displayName}</Text>
</Box>
</Flex>
<IconButton aria-label={t('device.drawer.metadataPanel.cta.load')} icon={<LuUpload />} isDisabled />
</Flex>
</CardHeader>
<CardBody>
<Alert status="warning">
<AlertIcon />
<AlertDescription>{t('device.errors.noMetadataLoaded')}</AlertDescription>
</Alert>
</CardBody>
</Card>
)
}
Expand Down

0 comments on commit 28ed85a

Please sign in to comment.