- Amount per order ($)
- setBulkDepAmount(e.target.value)}
+ Amount per order ($)
+ setBulkDepAmount(e.target.value)}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" step="0.01" placeholder="0.00" />
- Method
- setBulkDepMethod(e.target.value)}
+ Method
+ setBulkDepMethod(e.target.value)}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]">
Cash
Check
diff --git a/src/components/wholesale/admin/ProductsTab.tsx b/src/components/wholesale/admin/ProductsTab.tsx
index 505fa60..5dc7db2 100644
--- a/src/components/wholesale/admin/ProductsTab.tsx
+++ b/src/components/wholesale/admin/ProductsTab.tsx
@@ -142,8 +142,8 @@ export default function ProductsTab({ products, brandId, onMsg, onRefresh }: Pro
- Availability
- setForm(f => ({ ...f, availability: e.target.value }))}
+ Availability
+ setForm(f => ({ ...f, availability: e.target.value }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]">
Available
Unavailable
@@ -151,20 +151,18 @@ export default function ProductsTab({ products, brandId, onMsg, onRefresh }: Pro
- Qty Available
- setForm(f => ({ ...f, qtyAvailable: Number(e.target.value) }))}
+ Qty Available
+ setForm(f => ({ ...f, qtyAvailable: Number(e.target.value) }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" />
- HP SKU
- setForm(f => ({ ...f, hpSku: e.target.value }))}
+ HP SKU
+ setForm(f => ({ ...f, hpSku: e.target.value }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" />
-
- Price Tiers (JSON array of {"{\"min_qty\":1,\"max_qty\":24,\"price\":20}"})
-
- setForm(f => ({ ...f, priceTiers: e.target.value }))}
+ Price Tiers (JSON array of {"{\"min_qty\":1,\"max_qty\":24,\"price\":20}"})
+ setForm(f => ({ ...f, priceTiers: e.target.value }))}
placeholder='[{"min_qty":1,"max_qty":24,"price":20},{"min_qty":25,"max_qty":0,"price":18}]'
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm font-mono outline-none focus:border-[var(--admin-accent)]" />
diff --git a/src/components/wholesale/admin/SettingsTab.tsx b/src/components/wholesale/admin/SettingsTab.tsx
index 77d0365..9b9c38a 100644
--- a/src/components/wholesale/admin/SettingsTab.tsx
+++ b/src/components/wholesale/admin/SettingsTab.tsx
@@ -170,48 +170,48 @@ export default function SettingsTab({ settings, brandId, onMsg, onRefresh, canMa
- Minimum Order Amount ($)
- setForm(f => ({ ...f, minOrderAmount: e.target.value }))}
+ Minimum Order Amount ($)
+ setForm(f => ({ ...f, minOrderAmount: e.target.value }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" step="0.01" placeholder="No minimum" />
- From Email
- setForm(f => ({ ...f, fromEmail: e.target.value }))}
+ From Email
+ setForm(f => ({ ...f, fromEmail: e.target.value }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" />
- Pickup Location
-
- FOB Location
- setForm(f => ({ ...f, fobLocation: e.target.value }))}
+ FOB Location
+ setForm(f => ({ ...f, fobLocation: e.target.value }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" />
- Invoice Business Name
- setForm(f => ({ ...f, invoiceBusinessName: e.target.value }))}
+ Invoice Business Name
+ setForm(f => ({ ...f, invoiceBusinessName: e.target.value }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" />
- Invoice Business Address
- setForm(f => ({ ...f, invoiceBusinessAddress: e.target.value }))}
+ Invoice Business Address
+ setForm(f => ({ ...f, invoiceBusinessAddress: e.target.value }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" rows={2} />
- Invoice Business Phone
- setForm(f => ({ ...f, invoiceBusinessPhone: e.target.value }))}
+ Invoice Business Phone
+ setForm(f => ({ ...f, invoiceBusinessPhone: e.target.value }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" />
- Invoice Business Email
- setForm(f => ({ ...f, invoiceBusinessEmail: e.target.value }))}
+ Invoice Business Email
+ setForm(f => ({ ...f, invoiceBusinessEmail: e.target.value }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" />
- Invoice Business Website
- setForm(f => ({ ...f, invoiceBusinessWebsite: e.target.value }))}
+ Invoice Business Website
+ setForm(f => ({ ...f, invoiceBusinessWebsite: e.target.value }))}
className="w-full rounded-xl border border-[var(--admin-border)] px-3 py-2 text-sm outline-none focus:border-[var(--admin-accent)]" placeholder="https://" />
diff --git a/src/components/wholesale/admin/WebhookSettingsSection.tsx b/src/components/wholesale/admin/WebhookSettingsSection.tsx
index 37189fd..0f2c5a0 100644
--- a/src/components/wholesale/admin/WebhookSettingsSection.tsx
+++ b/src/components/wholesale/admin/WebhookSettingsSection.tsx
@@ -114,8 +114,8 @@ export default function WebhookSettingsSection({ brandId, onMsg }: WebhookSettin
- Webhook URL
- Webhook URL
+ setSettings(s => ({ ...s, url: e.target.value }))}
@@ -125,10 +125,8 @@ export default function WebhookSettingsSection({ brandId, onMsg }: WebhookSettin
-
- Signing Secret (HMAC-SHA256)
-
- Signing Secret (HMAC-SHA256)
+ setSettings(s => ({ ...s, secret: e.target.value }))}