diff --git a/apps/marginfi-v2-ui/src/components/common/ActionBox/ActionBox.tsx b/apps/marginfi-v2-ui/src/components/common/ActionBox/ActionBox.tsx index cd68df2b98..b79d895518 100644 --- a/apps/marginfi-v2-ui/src/components/common/ActionBox/ActionBox.tsx +++ b/apps/marginfi-v2-ui/src/components/common/ActionBox/ActionBox.tsx @@ -1,3 +1,54 @@ +import React from "react"; + +import { cn } from "~/utils"; + +import { MrgnLabeledSwitch } from "~/components/common/MrgnLabeledSwitch"; + +import { Popover, PopoverContent, PopoverTrigger } from "~/components/ui/popover"; +import { Button } from "~/components/ui/button"; +import { IconChevronDown } from "~/components/ui/icons"; + export const ActionBox = () => { - return
Action Box
; + const [isTokenPopoverOpen, setIsTokenPopoverOpen] = React.useState(false); + return ( +
+
+
+ {}} /> +
+

Supply. Earn interest. Borrow. Repeat.

+
+
+

You supply

+
+ setIsTokenPopoverOpen(open)}> + + + + +
    +
  • Token item 1
  • +
  • Token item 2
  • +
  • Token item 3
  • +
+
+
+ +
+ +
+
+ ); }; diff --git a/apps/marginfi-v2-ui/src/components/common/ActionBox/ActionBoxDialog.tsx b/apps/marginfi-v2-ui/src/components/common/ActionBox/ActionBoxDialog.tsx index a663ddddbb..3013d76540 100644 --- a/apps/marginfi-v2-ui/src/components/common/ActionBox/ActionBoxDialog.tsx +++ b/apps/marginfi-v2-ui/src/components/common/ActionBox/ActionBoxDialog.tsx @@ -9,24 +9,14 @@ type ActionBoxDialogProps = { }; export const ActionBoxDialog = ({ children }: ActionBoxDialogProps) => { - const [open, setOpen] = React.useState(false); - - const handleClickOpen = () => { - setOpen(true); - }; - - const handleClose = () => { - setOpen(false); - }; + const [isDialogOpen, setIsDialogOpen] = React.useState(false); return (
- setOpen(open)}> + setIsDialogOpen(open)}> {children} - -
- -
+ +
diff --git a/apps/marginfi-v2-ui/src/components/desktop/AssetsList/AssetsList.tsx b/apps/marginfi-v2-ui/src/components/desktop/AssetsList/AssetsList.tsx index d556726038..cb4bf18701 100644 --- a/apps/marginfi-v2-ui/src/components/desktop/AssetsList/AssetsList.tsx +++ b/apps/marginfi-v2-ui/src/components/desktop/AssetsList/AssetsList.tsx @@ -175,7 +175,7 @@ const AssetsList = () => { <> - + diff --git a/apps/marginfi-v2-ui/src/components/ui/dialog.tsx b/apps/marginfi-v2-ui/src/components/ui/dialog.tsx index 71f6fec3c4..812ce9ed7c 100644 --- a/apps/marginfi-v2-ui/src/components/ui/dialog.tsx +++ b/apps/marginfi-v2-ui/src/components/ui/dialog.tsx @@ -19,7 +19,7 @@ const DialogOverlay = React.forwardRef<