feat(#17,#18): add location filter and custom-location autofill
This commit is contained in:
@@ -14,6 +14,7 @@ function qualityValue(level) {
|
||||
export default function ItemModal({
|
||||
visible,
|
||||
itemForm,
|
||||
previousCustomPlacements,
|
||||
setItemModalVisible,
|
||||
updateItemForm,
|
||||
pickItemImage,
|
||||
@@ -90,6 +91,15 @@ export default function ItemModal({
|
||||
placeholder="bath-kit"
|
||||
placeholderTextColor="#6b7280"
|
||||
/>
|
||||
{previousCustomPlacements?.length ? (
|
||||
<View style={styles.chipGroup}>
|
||||
{previousCustomPlacements.slice(0, 6).map((location) => (
|
||||
<Pressable key={location} style={styles.chip} onPress={() => updateItemForm('placementCustom', location)}>
|
||||
<Text style={styles.chipText}>{location}</Text>
|
||||
</Pressable>
|
||||
))}
|
||||
</View>
|
||||
) : null}
|
||||
</Field>
|
||||
) : null}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user