diff --git a/apps/web/src/features/trade/components/positions/PositionsList.tsx b/apps/web/src/features/trade/components/positions/PositionsList.tsx index 61b2178f..3bab645d 100644 --- a/apps/web/src/features/trade/components/positions/PositionsList.tsx +++ b/apps/web/src/features/trade/components/positions/PositionsList.tsx @@ -129,7 +129,7 @@ export function PositionsList({ onSelectPosition }: Props) { { id: "mark", header: "Mark", - accessor: (p) => , + accessor: (p) => , }, { id: "liq", @@ -176,9 +176,9 @@ export function PositionsList({ onSelectPosition }: Props) { const role = p.pnlAfterFees >= 0 ? "positive" : "negative" return ( <> - + {" "} - + ) }, diff --git a/apps/web/src/features/trade/components/trade-panel/ConfirmationDialog.tsx b/apps/web/src/features/trade/components/trade-panel/ConfirmationDialog.tsx index 422cb3b4..f0ae7921 100644 --- a/apps/web/src/features/trade/components/trade-panel/ConfirmationDialog.tsx +++ b/apps/web/src/features/trade/components/trade-panel/ConfirmationDialog.tsx @@ -7,6 +7,7 @@ import { DialogTitle, } from "@workspace/ui/components/dialog" import { Button } from "@workspace/ui/components/button" +import { cn } from "@workspace/ui/lib/utils" import { useQuery } from "@tanstack/react-query" import { createSwapOrder, sendBatchOrderTxn } from "../../lib/stellar" import { formatUsd } from "../../lib/trade-math" @@ -447,9 +448,30 @@ export function ConfirmationDialog({ : "" } > - {isSubmitting - ? "Submitting..." - : `Confirm ${typeLabel}`} + + + {`Confirm ${typeLabel}`} + + + + diff --git a/apps/web/src/routes/__root.tsx b/apps/web/src/routes/__root.tsx index 365c5eac..2a9c04db 100644 --- a/apps/web/src/routes/__root.tsx +++ b/apps/web/src/routes/__root.tsx @@ -11,6 +11,7 @@ import { DensityProvider } from "@workspace/ui/components/density-provider" import appCss from "@workspace/ui/globals.css?url" import { AppProviders } from "../app/providers" import { RouteAnnouncer } from "../shared/components/RouteAnnouncer" +import { RouteProgressBar } from "../shared/components/RouteProgressBar" // Update this to your production domain before going live. const SITE_URL = "https://levee.market" @@ -194,6 +195,7 @@ function RootDocument({ children }: { children: React.ReactNode }) { + {children} diff --git a/apps/web/src/shared/components/RouteProgressBar.tsx b/apps/web/src/shared/components/RouteProgressBar.tsx new file mode 100644 index 00000000..567fe961 --- /dev/null +++ b/apps/web/src/shared/components/RouteProgressBar.tsx @@ -0,0 +1,20 @@ +import { useRouterState } from "@tanstack/react-router" +import { cn } from "@workspace/ui/lib/utils" + +export function RouteProgressBar() { + const isLoading = useRouterState({ select: (state) => state.isLoading }) + + return ( +