Skip to content

Commit

Permalink
chore: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MounirDhahri committed Sep 28, 2023
1 parent 3d5b0b1 commit 78f680f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/app/Scenes/SavedSearchAlert/Components/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
Flex,
Join,
Pill,
Separator,
Spacer,
Text,
Touchable,
Expand Down Expand Up @@ -136,7 +135,7 @@ export const Form: React.FC<FormProps> = ({
/>
)}

<Join separator={enableAlertsFilters ? <Separator my={1} /> : <></>}>
<Join separator={<Spacer y={2} />}>
<Box>
{isFallbackToGeneratedAlertNamesEnabled ? (
<SavedSearchNameInputQueryRenderer attributes={attributes} />
Expand All @@ -153,9 +152,7 @@ export const Form: React.FC<FormProps> = ({
/>
)}

<Spacer y={2} />

<Box>
<Box mt={2}>
<InputTitle>Filters</InputTitle>
<Flex flexDirection="row" flexWrap="wrap" mt={1} mx={-0.5}>
{pills.map((pill, index) => (
Expand All @@ -175,7 +172,7 @@ export const Form: React.FC<FormProps> = ({
</Box>

{!!enableAlertsFilters ? (
<>
<Flex mt={2}>
<MenuItem
title="Add Filters:"
description="Including price, rarity, medium, size, color"
Expand All @@ -184,12 +181,12 @@ export const Form: React.FC<FormProps> = ({
}}
px={0}
/>
</>
</Flex>
) : null}

{/* Price range is part of the new filters screen, no need to show it here anymore */}
{!enableAlertsFilters && (
<Flex mt={2} mb={4}>
<Flex my={2}>
<Touchable
accessibilityLabel="Set price range"
accessibilityRole="button"
Expand Down

0 comments on commit 78f680f

Please sign in to comment.