From 05904267c5b1e30fee16d48f92da5a8cf36320ac Mon Sep 17 00:00:00 2001 From: Khairul Hidayat Date: Wed, 10 Jan 2024 16:26:14 +0000 Subject: [PATCH] feat: view artwork full screen --- src/components/ui/Sheet.tsx | 6 ++++-- src/pages/artworks/viewSheet.tsx | 15 ++++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/components/ui/Sheet.tsx b/src/components/ui/Sheet.tsx index 577831f..255f59a 100644 --- a/src/components/ui/Sheet.tsx +++ b/src/components/ui/Sheet.tsx @@ -128,6 +128,7 @@ type SheetProps = React.ComponentProps & { title?: string; description?: string; position?: SheetContentProps["side"]; + className?: string; }; const Sheet = ({ @@ -136,18 +137,19 @@ const Sheet = ({ description, children, position, + className, ...props }: SheetProps) => { return ( - + {title ? {title} : null} {description ? ( {description} ) : null} -
{children}
+
{children}
); diff --git a/src/pages/artworks/viewSheet.tsx b/src/pages/artworks/viewSheet.tsx index bee853c..0ce2a33 100644 --- a/src/pages/artworks/viewSheet.tsx +++ b/src/pages/artworks/viewSheet.tsx @@ -20,7 +20,12 @@ const ViewSheet = ({ modal }: Props) => { }); return ( - + {isLoading ? (
@@ -32,12 +37,12 @@ const ViewSheet = ({ modal }: Props) => {

Cannot load item

) : ( -
-