diff --git a/src/components/TableInformationDrawer/Details.tsx b/src/components/TableInformationDrawer/Details.tsx index 78dd02364..b097198a1 100644 --- a/src/components/TableInformationDrawer/Details.tsx +++ b/src/components/TableInformationDrawer/Details.tsx @@ -8,6 +8,7 @@ import { IconButton, Stack, TextField, + Tooltip, Typography, useTheme, } from "@mui/material"; @@ -98,15 +99,17 @@ export default function Details() { Description {isAdmin && ( - { - setEditDescription(!editDescription); - }} - sx={{ top: 4 }} - > - {editDescription ? : } - + + { + setEditDescription(!editDescription); + }} + sx={{ top: 4 }} + > + {editDescription ? : } + + )} {editDescription ? ( @@ -145,15 +148,17 @@ export default function Details() { Details {isAdmin && ( - { - setEditDetails(!editDetails); - }} - sx={{ top: 4 }} - > - {editDetails ? : } - + + { + setEditDetails(!editDetails); + }} + sx={{ top: 4 }} + > + {editDetails ? : } + + )} - setSideDrawer(RESET)} - aria-label="Close" - > - - + + setSideDrawer(RESET)} + aria-label="Close" + > + + + - - {mode === "create" ? : } - + + + {mode === "create" ? : } + + - setAnchorEl(e.currentTarget)} - > - - + + setAnchorEl(e.currentTarget)} + > + + + ( <> {userRoles.includes("ADMIN") && ( - - openTableSettingsDialog({ mode: "update", data: table }) + + + openTableSettingsDialog({ mode: "update", data: table }) + } + size={view === "list" ? "large" : undefined} + > + + + + )} + + } + checkedIcon={ + + + } + name={`favorite-${table.id}`} + inputProps={{ "aria-label": "Favorite" }} + sx={view === "list" ? { p: 1.5 } : undefined} + color="secondary" + /> + + + - + - )} - } - checkedIcon={ - - - - } - name={`favorite-${table.id}`} - inputProps={{ "aria-label": "Favorite" }} - sx={view === "list" ? { p: 1.5 } : undefined} - color="secondary" - /> - - - + );