Skip to content

Commit 4d73382

Browse files
chore: update select in pos
1 parent 85af461 commit 4d73382

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

resources/js/pages/pos/index.tsx

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,14 +1164,15 @@ export default function PosIndex({ outlets, categories, foods, customers: initia
11641164
{!scopeHasOutlet && (
11651165
<div className="flex flex-col gap-1">
11661166
<label className="text-[10px] font-bold uppercase tracking-wider text-muted-foreground">Outlet</label>
1167-
<select
1167+
<SearchableSelect
11681168
value={outletId}
11691169
onChange={(e) => { setOutletId(e.target.value); setTableIds([]); }}
1170-
className="h-8 rounded-md border border-border bg-background px-2 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary dark:border-stone-700 dark:bg-stone-800"
1170+
placeholder="Select outlet…"
1171+
className="h-10 text-xs"
11711172
>
11721173
<option value="">Select outlet…</option>
11731174
{outlets.map((o) => <option key={o.id} value={o.id}>{o.name}</option>)}
1174-
</select>
1175+
</SearchableSelect>
11751176
</div>
11761177
)}
11771178
<div className="flex flex-col gap-1">
@@ -1180,28 +1181,20 @@ export default function PosIndex({ outlets, categories, foods, customers: initia
11801181
<span className="font-normal normal-case text-muted-foreground/60">(optional)</span>
11811182
<kbd className="ml-auto rounded border border-border bg-muted px-1 py-0.5 font-mono text-[9px] font-bold dark:border-stone-700 dark:bg-stone-800">C</kbd>
11821183
</label>
1183-
<div ref={customerSelectRef} className="flex gap-1.5">
1184+
<div ref={customerSelectRef}>
11841185
<SearchableSelect
11851186
value={customerId}
11861187
onChange={(e) => setCustomerId(e.target.value)}
11871188
placeholder="Walk-in / Anonymous"
11881189
onAddNew={(q) => openNewCustomer(q)}
11891190
addNewLabel="New customer"
1190-
className="h-8 rounded-md border-border bg-background pr-14 text-xs dark:border-stone-700 dark:bg-stone-800"
1191+
className="h-10 rounded-md border-border bg-background pr-14 text-xs dark:border-stone-700 dark:bg-stone-800"
11911192
>
11921193
<option value="">Walk-in / Anonymous</option>
11931194
{customers.map((c) => (
11941195
<option key={c.id} value={c.id}>{c.name}{c.phone ? ` - ${c.phone}` : ''}</option>
11951196
))}
11961197
</SearchableSelect>
1197-
<button
1198-
type="button"
1199-
onClick={() => openNewCustomer('')}
1200-
title="New customer"
1201-
className="flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border bg-background text-muted-foreground transition hover:border-primary hover:text-primary dark:border-stone-700 dark:bg-stone-800"
1202-
>
1203-
<UserPlus className="h-3.5 w-3.5" />
1204-
</button>
12051198
</div>
12061199
</div>
12071200
</div>

0 commit comments

Comments
 (0)