Skip to content

Commit 7e2ed42

Browse files
committed
Update
1 parent 0c6d85e commit 7e2ed42

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

apps/dashboard/src/contract-ui/tabs/shared-components/listing-drawer.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { WalletAddress } from "@/components/blocks/wallet-address";
2+
import { Sheet, SheetContent } from "@/components/ui/sheet";
23
import {
34
Flex,
45
GridItem,
@@ -17,7 +18,7 @@ import type {
1718
EnglishAuction,
1819
} from "thirdweb/extensions/marketplace";
1920
import { useActiveAccount } from "thirdweb/react";
20-
import { Badge, Card, CodeBlock, Drawer, Heading, Text } from "tw-components";
21+
import { Badge, Card, CodeBlock, Heading, Text } from "tw-components";
2122
import { AddressCopyButton } from "tw-components/AddressCopyButton";
2223
import { NFTMediaWithEmptyState } from "tw-components/nft-media";
2324
import { CancelDirectListing } from "../direct-listings/components/cancel";
@@ -200,14 +201,8 @@ export const ListingDrawer: React.FC<NFTDrawerProps> = ({
200201
}
201202

202203
return (
203-
<Drawer
204-
allowPinchZoom
205-
preserveScrollBarGap
206-
size="xl"
207-
onClose={onClose}
208-
isOpen={isOpen}
209-
>
210-
<Flex py={6} px={2} flexDir="column" gap={6}>
204+
<Sheet open={isOpen} onOpenChange={onClose}>
205+
<SheetContent className="flex w-full flex-col gap-6 py-6 md:min-w-[600px]">
211206
<Flex gap={6}>
212207
<NFTMediaWithEmptyState
213208
metadata={renderData.asset.metadata}
@@ -246,7 +241,7 @@ export const ListingDrawer: React.FC<NFTDrawerProps> = ({
246241
})}
247242
</TabPanels>
248243
</Tabs>
249-
</Flex>
250-
</Drawer>
244+
</SheetContent>
245+
</Sheet>
251246
);
252247
};

0 commit comments

Comments
 (0)