feat(frontend): update admin components

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-06-18 16:26:58 +01:00
co-authored by Sisyphus
parent 165d3d6c38
commit b23a8b89c4
16 changed files with 370 additions and 121 deletions
@@ -108,7 +108,7 @@
override_price: s.override_price,
override_duration_minutes: s.override_duration_minutes
})),
payments: (data.payments || []).map((p) => ({
payments: (data.payments || []).map((p: any) => ({
id: p.id,
booking_id: p.booking_id,
payment_type: p.payment_type,
@@ -675,7 +675,7 @@
type="text"
inputmode="decimal"
value={overridePrice}
oninput={(e) => handlePriceInput(e.target.value)}
oninput={(e) => handlePriceInput(e.currentTarget.value)}
onblur={() => {
if (overridePrice) {
if (!overridePrice.includes('.')) {
@@ -718,7 +718,7 @@
min="1"
step="1"
value={overrideDuration}
oninput={(e) => handleDurationInput(e.target.value)}
oninput={(e: Event) => handleDurationInput((e.target as HTMLInputElement).value)}
class="no-spin w-full"
placeholder={overrideOriginalDuration.toString()}
/>