+
>
)
}
diff --git a/components/dialogs/order-stepper/mobile/steps/default.tsx b/components/dialogs/order-stepper/mobile/steps/default.tsx
index 8c157acb..7e4001d1 100644
--- a/components/dialogs/order-stepper/mobile/steps/default.tsx
+++ b/components/dialogs/order-stepper/mobile/steps/default.tsx
@@ -4,14 +4,11 @@ import { AssetsSection } from "@/app/trade/[base]/components/new-order/assets-se
import { NewOrderForm } from "@/app/trade/[base]/components/new-order/new-order-form"
import { NewOrderConfirmationProps } from "@/components/dialogs/order-stepper/desktop/new-order-stepper"
-import { Button } from "@/components/ui/button"
import {
- DrawerClose,
- DrawerDescription,
- DrawerFooter,
- DrawerHeader,
- DrawerTitle,
-} from "@/components/ui/drawer"
+ DialogDescription,
+ DialogHeader,
+ DialogTitle,
+} from "@/components/ui/dialog"
import { Separator } from "@/components/ui/separator"
export function DefaultStep(props: {
@@ -21,13 +18,13 @@ export function DefaultStep(props: {
}) {
return (
<>
-
+
+
-
>
)
}
diff --git a/components/dialogs/order-stepper/mobile/steps/success-without-savings.tsx b/components/dialogs/order-stepper/mobile/steps/success-without-savings.tsx
index b68acfb9..040a8f73 100644
--- a/components/dialogs/order-stepper/mobile/steps/success-without-savings.tsx
+++ b/components/dialogs/order-stepper/mobile/steps/success-without-savings.tsx
@@ -8,8 +8,13 @@ import { useStepper } from "@/components/dialogs/order-stepper/mobile/new-order-
import { DidYouKnowContent } from "@/components/did-you-know-content"
import { OrderStatusDisplay } from "@/components/order-status-display"
import { Button } from "@/components/ui/button"
-import { DialogDescription, DialogTitle } from "@/components/ui/dialog"
-import { DrawerClose, DrawerFooter, DrawerHeader } from "@/components/ui/drawer"
+import {
+ DialogClose,
+ DialogDescription,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
+} from "@/components/ui/dialog"
const states: TaskState[] = [
"Proving",
@@ -53,15 +58,15 @@ export function SuccessStepWithoutSavings() {
return (
<>
-
-
+
+
{Icon}
{title}
Your order has been placed.
-
+
-
+
+
+
+
+
>
)
}
diff --git a/components/dialogs/order-stepper/mobile/steps/success.tsx b/components/dialogs/order-stepper/mobile/steps/success.tsx
deleted file mode 100644
index 74cc21bb..00000000
--- a/components/dialogs/order-stepper/mobile/steps/success.tsx
+++ /dev/null
@@ -1,159 +0,0 @@
-import * as React from "react"
-
-import { VisuallyHidden } from "@radix-ui/react-visually-hidden"
-import { useTaskHistoryWebSocket } from "@renegade-fi/react"
-import { Repeat } from "lucide-react"
-
-import {
- NewOrderConfirmationProps,
- useStepper,
-} from "@/components/dialogs/order-stepper/desktop/new-order-stepper"
-import { GlowText } from "@/components/glow-text"
-import { Button } from "@/components/ui/button"
-import { Checkbox } from "@/components/ui/checkbox"
-import {
- DialogClose,
- DialogDescription,
- DialogFooter,
- DialogHeader,
- DialogTitle,
-} from "@/components/ui/dialog"
-import {
- DrawerClose,
- DrawerFooter,
- DrawerHeader,
- DrawerTitle,
-} from "@/components/ui/drawer"
-import { ScrollArea } from "@/components/ui/scroll-area"
-import { Spinner } from "@/components/ui/spinner"
-
-import { useMediaQuery } from "@/hooks/use-media-query"
-import { formatCurrency } from "@/lib/format"
-
-export function SuccessStep(props: NewOrderConfirmationProps) {
- const isDesktop = useMediaQuery("(min-width: 1024px)")
- const { taskId } = useStepper()
- const [status, setStatus] = React.useState<"pending" | "success" | "error">(
- "pending",
- )
-
- useTaskHistoryWebSocket({
- onUpdate(task) {
- if (task.id === taskId) {
- if (task.state === "Completed") {
- setStatus("success")
- } else if (task.state === "Failed") {
- setStatus("error")
- }
- }
- },
- })
-
- const title =
- status === "pending"
- ? "Placing Order"
- : status === "success"
- ? "Order Placed"
- : "Failed to Place Order"
- const description =
- status === "pending"
- ? "Your order is being placed."
- : status === "success"
- ? "Your order has been placed."
- : "Your order has failed."
-
- if (isDesktop) {
- return (
- <>
-
-
- {title}
- {status === "pending" && }
-
-
- {description}
-
-
-
-
-
-
-
-
-
-
- >
- )
- }
-
- return (
- <>
-
- {title}
-
-
-
-
-
-
-
-
-
-
-
- >
- )
-}
-
-function OrderSuccessSection({ predictedSavings }: NewOrderConfirmationProps) {
- const savingsLabel = predictedSavings
- ? formatCurrency(predictedSavings)
- : "--"
- return (
- <>
-
-
You're estimated to save
-
-
when your order fills at the realtime Binance midpoint price.
-
-
-
- Did you know?
-
-
-
All trades are pre-trade and post-trade private.
-
-
-
-
-
- >
- )
-}
diff --git a/components/dialogs/sign-in-dialog.tsx b/components/dialogs/sign-in-dialog.tsx
index 277605a6..65f45985 100644
--- a/components/dialogs/sign-in-dialog.tsx
+++ b/components/dialogs/sign-in-dialog.tsx
@@ -23,14 +23,6 @@ import {
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog"
-import {
- Drawer,
- DrawerContent,
- DrawerDescription,
- DrawerFooter,
- DrawerHeader,
- DrawerTitle,
-} from "@/components/ui/drawer"
import { useMediaQuery } from "@/hooks/use-media-query"
import { STORAGE_REMEMBER_ME } from "@/lib/constants/storage"
@@ -186,32 +178,35 @@ export function SignInDialog({
}
return (
-
-
-
- Unlock your Wallet
-
- To trade on Renegade, we require a one-time signature to create or
- find your wallet on-chain.
-
-
-
-
-
-
-
-
+
+
+
+ Unlock your Wallet
+
+ To trade on Renegade, we require a one-time signature to create or
+ find your wallet on-chain.
+
+
+
+
+
+
+
+
+
)
}
diff --git a/components/dialogs/token-select-dialog.tsx b/components/dialogs/token-select-dialog.tsx
index 8e599415..bae10c85 100644
--- a/components/dialogs/token-select-dialog.tsx
+++ b/components/dialogs/token-select-dialog.tsx
@@ -17,14 +17,6 @@ import {
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog"
-import {
- Drawer,
- DrawerContent,
- DrawerDescription,
- DrawerHeader,
- DrawerTitle,
- DrawerTrigger,
-} from "@/components/ui/drawer"
import { Input } from "@/components/ui/input"
import { ScrollArea } from "@/components/ui/scroll-area"
@@ -77,23 +69,29 @@ export function TokenSelectDialog({
}
return (
-
- {children}
-
-
- Select Token
-
+ {children}
+ {
+ e.preventDefault()
+ }}
+ >
+
+ Select Token
+
setSearchTerm(e.target.value)}
/>
-
-
-
+
+
+
setOpen(false)}
/>
-
-
+
+
)
}
diff --git a/components/dialogs/transfer/transfer-dialog.tsx b/components/dialogs/transfer/transfer-dialog.tsx
index 46532eaf..b1ef73b7 100644
--- a/components/dialogs/transfer/transfer-dialog.tsx
+++ b/components/dialogs/transfer/transfer-dialog.tsx
@@ -19,6 +19,7 @@ import { NumberInput } from "@/components/number-input"
import { Button } from "@/components/ui/button"
import {
Dialog,
+ DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
@@ -26,16 +27,6 @@ import {
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog"
-import {
- Drawer,
- DrawerClose,
- DrawerContent,
- DrawerDescription,
- DrawerFooter,
- DrawerHeader,
- DrawerTitle,
- DrawerTrigger,
-} from "@/components/ui/drawer"
import {
Form,
FormControl,
@@ -178,17 +169,31 @@ export function TransferDialog({
}
return (
-
- {children}
-
-
-
+
{children}
+
+
+
+
+
+ {direction === ExternalTransferDirection.Deposit
+ ? "Deposit"
+ : "Withdraw"}
+
+
+ {direction === ExternalTransferDirection.Deposit
+ ? "Deposit tokens into Renegade"
+ : "Withdraw tokens from Renegade"}
+
+
+
+
-
-
- {direction === ExternalTransferDirection.Deposit
- ? "Deposit"
- : "Withdraw"}
-
-
- {direction === ExternalTransferDirection.Deposit
- ? "Deposit tokens into Renegade"
- : "Withdraw tokens from Renegade"}
-
-
-
-
setOpen(false)}
- />
-
-
+ setOpen(false)}
+ />
+
+
+
)
}
@@ -464,7 +457,10 @@ function TransferForm({
return (