From 68b5aebc1796332855aa19be2fe6723d2a03c9b6 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Mon, 21 Apr 2025 14:37:00 +0100 Subject: [PATCH] Update page.tsx --- app/dashboard/storefront/page.tsx | 350 ++++++++++++++++-------------- 1 file changed, 185 insertions(+), 165 deletions(-) diff --git a/app/dashboard/storefront/page.tsx b/app/dashboard/storefront/page.tsx index 35c1c38..c174b0d 100644 --- a/app/dashboard/storefront/page.tsx +++ b/app/dashboard/storefront/page.tsx @@ -10,6 +10,7 @@ import { Save, Send, Key, MessageSquare, Shield, Globe, Wallet } from "lucide-re import { apiRequest } from "@/lib/api"; import { toast, Toaster } from "sonner"; import BroadcastDialog from "@/components/modals/broadcast-dialog"; +import Dashboard from "@/components/dashboard/dashboard"; import { Select, SelectContent, @@ -33,6 +34,7 @@ interface Storefront { telegramToken: string; shipsFrom: typeof SHIPPING_REGIONS[number]["value"]; shipsTo: typeof SHIPPING_REGIONS[number]["value"]; + storePolicy: string; wallets: { bitcoin?: string; litecoin: string; @@ -80,6 +82,7 @@ export default function StorefrontPage() { telegramToken: "", shipsFrom: "UK", shipsTo: "WW", + storePolicy: "", wallets: { bitcoin: '', litecoin: '', @@ -117,6 +120,7 @@ export default function StorefrontPage() { telegramToken: data.telegramToken || "", shipsFrom: data.shipsFrom || "UK", shipsTo: data.shipsTo || "WW", + storePolicy: data.storePolicy || "", wallets: { bitcoin: data.wallets?.bitcoin || '', litecoin: data.wallets?.litecoin || '', @@ -157,10 +161,13 @@ export default function StorefrontPage() { }; return ( - -
-
-

Storefront Settings

+ +
+
+

+ + Storefront Settings +

-
-
- {/* Security Settings */} -
-
-
- -

- Security -

-
-
-
- -