diff --git a/admin/src/components/ItemTable.tsx b/admin/src/components/ItemTable.tsx index 604113b..c33c76a 100644 --- a/admin/src/components/ItemTable.tsx +++ b/admin/src/components/ItemTable.tsx @@ -9,7 +9,6 @@ import { IconButton, Heading, Icon, - Tag, Input, } from "@chakra-ui/react"; import { Tooltip } from "@/components/ui/tooltip"; @@ -219,57 +218,35 @@ const ItemTable: React.FC = () => { onClick={() => changeSafeState(item.id).then(() => setReload(!reload)) } - size="sm" + size="xs" + rounded="full" + px={3} + py={1} + gap={2} + variant="ghost" + color={item.inSafe ? "green.600" : "red.600"} + borderWidth="1px" + borderColor={item.inSafe ? "green.300" : "red.300"} + _hover={{ + bg: item.inSafe ? "green.50" : "red.50", + borderColor: item.inSafe ? "green.400" : "red.400", + transform: "translateY(-1px)", + shadow: "sm", + }} + _active={{ transform: "translateY(0)" }} + leftIcon={ + + } + aria-label={ + item.inSafe ? "Mark as not in safe" : "Mark as in safe" + } > - {item.inSafe ? ( - - - - Yes - - - ) : ( - - - - No - - - )} + + {item.inSafe ? "Yes" : "No"} + {formatDateTime(item.entry_created_at)}