diff --git a/web/components/dashboard/DeviceList.tsx b/web/components/dashboard/DeviceList.tsx index 61cf5c2..cabb9de 100644 --- a/web/components/dashboard/DeviceList.tsx +++ b/web/components/dashboard/DeviceList.tsx @@ -1,4 +1,4 @@ -import { DeleteIcon } from '@chakra-ui/icons' +import { CopyIcon, DeleteIcon } from '@chakra-ui/icons' import { IconButton, Spinner, @@ -10,6 +10,7 @@ import { Thead, Tooltip, Tr, + useToast, } from '@chakra-ui/react' import { useEffect } from 'react' import { useSelector } from 'react-redux' @@ -19,9 +20,28 @@ import { useAppDispatch } from '../../store/hooks' const DeviceRow = ({ device, onDelete }: any) => { const { enabled, model, brand, _id, createdAt } = device + + const toast = useToast(); + return (