diff --git a/web/src/ui/pages/myFiles/NewComponents/DirectoryOrFileDetailed.stories.tsx b/web/src/ui/pages/myFiles/NewComponents/DirectoryOrFileDetailed.stories.tsx index 111762a94..7d5a5fb27 100644 --- a/web/src/ui/pages/myFiles/NewComponents/DirectoryOrFileDetailed.stories.tsx +++ b/web/src/ui/pages/myFiles/NewComponents/DirectoryOrFileDetailed.stories.tsx @@ -13,7 +13,6 @@ type Story = StoryObj; export const Directory: Story = { args: { name: "My Documents", - size: 1024, kind: "directory", isPublic: false } @@ -22,7 +21,6 @@ export const Directory: Story = { export const File: Story = { args: { name: "report.pdf", - size: 2048, kind: "file", isPublic: true } diff --git a/web/src/ui/pages/myFiles/NewComponents/DirectoryOrFileDetailed.tsx b/web/src/ui/pages/myFiles/NewComponents/DirectoryOrFileDetailed.tsx index 0e5c97db7..609f79dd3 100644 --- a/web/src/ui/pages/myFiles/NewComponents/DirectoryOrFileDetailed.tsx +++ b/web/src/ui/pages/myFiles/NewComponents/DirectoryOrFileDetailed.tsx @@ -8,13 +8,12 @@ import { MuiIconComponentName } from "onyxia-ui/MuiIconComponentName"; type Props = { className?: string; name: string; - size: number; kind: "directory" | "file"; isPublic: boolean; }; export function DirectoryOrFileDetailed(props: Props) { - const { name, size, kind, isPublic, className } = props; + const { name, kind, isPublic, className } = props; const { classes, cx } = useStyles(); const shareIconId = id( @@ -45,7 +44,6 @@ export function DirectoryOrFileDetailed(props: Props) {   {isPublic ? "Dossier public" : "Dossier privĂ©"} - - {size} MB diff --git a/web/src/ui/pages/myFiles/NewComponents/MyFilesCreateFolderDialog.tsx b/web/src/ui/pages/myFiles/NewComponents/MyFilesCreateFolderDialog.tsx index a63d44516..4230ac4a1 100644 --- a/web/src/ui/pages/myFiles/NewComponents/MyFilesCreateFolderDialog.tsx +++ b/web/src/ui/pages/myFiles/NewComponents/MyFilesCreateFolderDialog.tsx @@ -8,11 +8,7 @@ import { TextField } from "onyxia-ui/TextField"; import { FormControl, FormControlLabel, FormHelperText } from "@mui/material"; import { Checkbox } from "onyxia-ui/Checkbox"; -export type Props = {}; - -export const MyFilesCreateFolderDialog = memo((props: Props) => { - const {} = props; - +export const MyFilesCreateFolderDialog = memo(() => { const { classes } = useStyles(); const [isOpen, setIsOpen] = useState(true); const onClose = () => setIsOpen(false); diff --git a/web/src/ui/pages/myFiles/NewComponents/MyFilesShareDialog.tsx b/web/src/ui/pages/myFiles/NewComponents/MyFilesShareDialog.tsx index a05d5b0b3..027eff0ab 100644 --- a/web/src/ui/pages/myFiles/NewComponents/MyFilesShareDialog.tsx +++ b/web/src/ui/pages/myFiles/NewComponents/MyFilesShareDialog.tsx @@ -30,7 +30,6 @@ export const MyFilesShareDialog = memo((props: Props) => {
); } -const useStyles = tss.withName({ MyFilesShareSelectTime }).create(({}) => ({ +const useStyles = tss.withName({ MyFilesShareSelectTime }).create(() => ({ "timeSelectWrapper": { "minWidth": 200 }