Skip to content

Commit

Permalink
Merge pull request #2879 from digitalfabrik/2870-POI-filters-Button-t…
Browse files Browse the repository at this point in the history
…o-only-show-currently-open-locations-can-be-cut-off

2870: POI filters: Button to only show currently open locations can be cut off
  • Loading branch information
bahaaTuffaha authored Aug 20, 2024
2 parents 5569d14 + 83e54ca commit bd707bc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 7 additions & 3 deletions native/src/components/PoiFiltersModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ const Row = styled.View`
flex-direction: row;
padding-top: 16px;
`
const StyledRow = styled(Row)`
align-items: center;
justify-content: center;
`

const StyledText = styled.Text`
font-size: 14px;
color: ${props => props.theme.colors.textColor};
font-family: ${props => props.theme.fonts.native.decorativeFontRegular};
padding: 4px;
flex-shrink: 1;
`

const SortingHint = styled.Text`
Expand All @@ -51,7 +56,6 @@ const SortingHint = styled.Text`
`

const FlexEnd = styled.View`
flex: 1;
justify-content: flex-end;
`

Expand Down Expand Up @@ -98,13 +102,13 @@ const PoiFiltersModal = ({
<Container>
<Section>
<SubTitle>{t('openingHours')}</SubTitle>
<Row>
<StyledRow>
<Icon Icon={ClockIcon} />
<StyledText>{t('onlyCurrentlyOpen')}</StyledText>
<FlexEnd>
<SettingsSwitch onPress={setCurrentlyOpenFilter} value={currentlyOpenFilter} />
</FlexEnd>
</Row>
</StyledRow>
</Section>
<Section>
<Row>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
issue_key: 2870
show_in_stores: true
platforms: # relevant platforms, possible values: web, android and ios
- android
- ios
en: A fix for the toggle button in the map filter
de: Der Toggle-Button im Kartenfilter wurde verbessert

0 comments on commit bd707bc

Please sign in to comment.