feat(#16): support custom placement when selecting other
All checks were successful
Luggage List Build / build-web (push) Successful in 40s
Luggage List Build / build-android (push) Successful in 7m26s
Luggage List Build / release (push) Successful in 15s

This commit is contained in:
2026-04-18 21:41:18 +02:00
parent 354a13e9a9
commit 063e5090ed
3 changed files with 52 additions and 5 deletions

View File

@@ -81,6 +81,18 @@ export default function ItemModal({
<ChipGroup options={ITEM_PLACEMENTS} value={itemForm.placement} onChange={(v) => updateItemForm('placement', v)} />
</Field>
{itemForm.placement === 'other' ? (
<Field label="Custom location">
<TextInput
style={styles.input}
value={itemForm.placementCustom}
onChangeText={(v) => updateItemForm('placementCustom', v)}
placeholder="bath-kit"
placeholderTextColor="#6b7280"
/>
</Field>
) : null}
{itemForm.status === 'lent-to' ? (
<Field label="Lent to">
<TextInput