-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(space): add invest & withdraw button
- Loading branch information
Xenepix38
committed
Nov 20, 2023
1 parent
5674645
commit 5b69ea8
Showing
5 changed files
with
87 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
desktop-app/renderer/pages/spaces/[slug]/dashbordSkeleton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function DashboardSkeleton(): JSX.Element { | ||
return <></> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
desktop-app/renderer/pages/spaces/[slug]/moneyActionButtons.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { Button } from '@/components/ui/button' | ||
import { | ||
Tooltip, | ||
TooltipContent, | ||
TooltipProvider, | ||
TooltipTrigger | ||
} from '@/components/ui/tooltip' | ||
import { useToast } from '@/components/ui/use-toast' | ||
import { | ||
ArrowDownOnSquareIcon, | ||
ArrowUpOnSquareIcon | ||
} from '@heroicons/react/24/outline' | ||
|
||
export default function MoneyActionButtons(): JSX.Element { | ||
const { toast } = useToast() | ||
return ( | ||
<div className="flex flex-row gap-4"> | ||
<TooltipProvider> | ||
<Tooltip> | ||
<TooltipTrigger> | ||
<Button | ||
variant="outline" | ||
size="icon" | ||
onClick={() => { | ||
toast({ | ||
title: 'Deposit', | ||
description: 'You have deposited money !' | ||
}) | ||
}} | ||
> | ||
<ArrowUpOnSquareIcon className="w-6 h-6" strokeWidth={1.2} /> | ||
</Button> | ||
</TooltipTrigger> | ||
<TooltipContent> | ||
<p>Deposit</p> | ||
</TooltipContent> | ||
</Tooltip> | ||
</TooltipProvider> | ||
<TooltipProvider> | ||
<Tooltip> | ||
<TooltipTrigger> | ||
<Button | ||
variant="outline" | ||
size="icon" | ||
onClick={() => { | ||
toast({ | ||
title: 'Withdraw', | ||
description: 'You have withdrawn money !' | ||
}) | ||
}} | ||
> | ||
<ArrowDownOnSquareIcon className="w-6 h-6" strokeWidth={1.2} /> | ||
</Button> | ||
</TooltipTrigger> | ||
<TooltipContent> | ||
<p>Withdraw</p> | ||
</TooltipContent> | ||
</Tooltip> | ||
</TooltipProvider> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters