diff --git a/app/components/general-layout.tsx b/app/components/general-layout.tsx index f4d79c3..b861d04 100644 --- a/app/components/general-layout.tsx +++ b/app/components/general-layout.tsx @@ -25,17 +25,28 @@ import { PageIcon, ThemeIcon, } from "./icons"; -import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem } from "./ui/dropdown-menu"; +import { + DropdownMenu, + DropdownMenuTrigger, + DropdownMenuContent, + DropdownMenuGroup, + DropdownMenuItem, +} from "./ui/dropdown-menu"; import { Avatar } from "@radix-ui/react-avatar"; import { cn } from "~/utils"; import { useGetIdentity, useLogout } from "@refinedev/core"; import type { Identity } from "~/data/auth-provider"; - +import { + Tooltip, + TooltipContent, + TooltipTrigger, + TooltipProvider, +} from "./ui/tooltip"; export const GeneralLayout = ({ children }: React.PropsWithChildren) => { const location = useLocation(); const { data: identity } = useGetIdentity(); - const{ mutate: logout } = useLogout() + const { mutate: logout } = useLogout(); return (
@@ -246,6 +257,7 @@ const UploadFileItem = ({ file: UppyFile; onRemove: (id: string) => void; }) => { + const sizeInMb = bytestoMegabytes(file.size).toFixed(2); return (
@@ -257,12 +269,23 @@ const UploadFileItem = ({ )}
-

- - {file.name} - {" "} - ({bytestoMegabytes(file.size).toFixed(2)} MB) -

+ + + +

+ + {file.name} + {" "} + ({sizeInMb}MB) +

+
+ +

+ {file.name} ({sizeInMb}MB) +

+
+
+