Skip to content

Commit

Permalink
improve details sheet styling
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiofederici committed Jan 18, 2025
1 parent 7b5cf55 commit 227098c
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions playground/src/app/(vault)/vault/holdings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ import {
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion";
import { AlertTriangle } from "lucide-react";
import { AlertTriangle, InfoIcon } from "lucide-react";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";

const SKELETON_ROW_COUNT = 5;

Expand Down Expand Up @@ -270,12 +272,21 @@ export default function Holdings() {
</SheetHeader>

<div className="grid grid-cols-1 2xl:grid-cols-[200px_1fr] gap-6 py-6">
<div className="flex flex-col items-center justify-center">
<div className="flex flex-col items-center justify-start">
<QRCodeSVG value={`solana:vaultAddress`} level="M" size={200} />
<p className="mt-2 text-sm text-muted-foreground text-left">
This is the address of your Vault. Deposit funds by scanning the
QR code or copying the address.
<div className="flex flex-row items-center justify-center mt-2">
<p className="text-sm text-muted-foreground text-center">
This is your Vault address.
</p>
<Popover>
<PopoverTrigger>
<InfoIcon className="ml-2 w-4 h-4 text-muted-foreground" />
</PopoverTrigger>
<PopoverContent>
<p className="text-sm text-muted-foreground">Deposit funds by scanning the QR code or copying the address.</p>
</PopoverContent>
</Popover>
</div>
</div>

<div className="space-y-4">
Expand Down

0 comments on commit 227098c

Please sign in to comment.