diff --git a/src/I18n/languages/cz.json b/src/I18n/languages/cz.json index 9aa0903d1..28e0308c1 100644 --- a/src/I18n/languages/cz.json +++ b/src/I18n/languages/cz.json @@ -77,7 +77,9 @@ "result": "Result", "optional": "Optional", "defaultSettings": "Default Settings", - "notApplicable": "N/A" + "notApplicable": "N/A", + "showMore": "Show more", + "showLess": "Show less" }, "sidebar": { "home": "Domovská stránka", diff --git a/src/I18n/languages/de.json b/src/I18n/languages/de.json index d29a5d399..6deec335f 100644 --- a/src/I18n/languages/de.json +++ b/src/I18n/languages/de.json @@ -77,7 +77,9 @@ "result": "Result", "optional": "Optional", "defaultSettings": "Default Settings", - "notApplicable": "N/A" + "notApplicable": "N/A", + "showMore": "Show more", + "showLess": "Show less" }, "sidebar": { "home": "Home", diff --git a/src/I18n/languages/en.json b/src/I18n/languages/en.json index 23103c478..bee7c4803 100644 --- a/src/I18n/languages/en.json +++ b/src/I18n/languages/en.json @@ -77,7 +77,9 @@ "result": "Result", "optional": "Optional", "defaultSettings": "Default Settings", - "notApplicable": "N/A" + "notApplicable": "N/A", + "showMore": "Show more", + "showLess": "Show less" }, "sidebar": { "home": "Home", diff --git a/src/I18n/languages/es.json b/src/I18n/languages/es.json index c096b44ed..db307af84 100644 --- a/src/I18n/languages/es.json +++ b/src/I18n/languages/es.json @@ -77,7 +77,9 @@ "result": "Result", "optional": "Optional", "defaultSettings": "Default Settings", - "notApplicable": "N/A" + "notApplicable": "N/A", + "showMore": "Show more", + "showLess": "Show less" }, "sidebar": { "home": "Menú principal", diff --git a/src/I18n/languages/fr.json b/src/I18n/languages/fr.json index 371f1e46b..b52ddd1f5 100644 --- a/src/I18n/languages/fr.json +++ b/src/I18n/languages/fr.json @@ -77,7 +77,9 @@ "result": "Résultat", "optional": "Optionnel", "defaultSettings": "Paramètres par défaut", - "notApplicable": "N/A" + "notApplicable": "N/A", + "showMore": "Voir plus", + "showLess": "Voir moins" }, "sidebar": { "home": "Home", diff --git a/src/I18n/languages/it.json b/src/I18n/languages/it.json index c0464287d..e8971c552 100644 --- a/src/I18n/languages/it.json +++ b/src/I18n/languages/it.json @@ -77,7 +77,9 @@ "result": "Result", "optional": "Optional", "defaultSettings": "Default Settings", - "notApplicable": "N/A" + "notApplicable": "N/A", + "showMore": "Show more", + "showLess": "Show less" }, "sidebar": { "home": "Home", diff --git a/src/I18n/languages/pt.json b/src/I18n/languages/pt.json index f1aa4a110..20b7ae39d 100644 --- a/src/I18n/languages/pt.json +++ b/src/I18n/languages/pt.json @@ -77,7 +77,9 @@ "result": "Result", "optional": "Optional", "defaultSettings": "Default Settings", - "notApplicable": "N/A" + "notApplicable": "N/A", + "showMore": "Show more", + "showLess": "Show less" }, "sidebar": { "home": "Home", diff --git a/src/components/search/filter/containers/FilterContainerComponentStyles.tsx b/src/components/search/filter/containers/FilterContainerComponentStyles.tsx index 2861929d3..bf0beeb54 100644 --- a/src/components/search/filter/containers/FilterContainerComponentStyles.tsx +++ b/src/components/search/filter/containers/FilterContainerComponentStyles.tsx @@ -24,6 +24,21 @@ export default function computeStyleSheet(): StyleSheet.NamedStyles { visibleExpandedIcon: { fontSize: '25@s', color: commonColor.textColor + }, + filterButtonText: { + fontSize: "15@s", + color: commonColor.textColor, + textAlign: 'right' + }, + filterButtonContainer: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'flex-end', + width: '100%' + }, + filterButtonIcon: { + fontSize: '25@s', + color: commonColor.textColor } }); const portraitStyles = {}; diff --git a/src/components/search/filter/containers/FilterVisibleContainerComponent.tsx b/src/components/search/filter/containers/FilterVisibleContainerComponent.tsx index 5d3dc9324..01b8cd48d 100644 --- a/src/components/search/filter/containers/FilterVisibleContainerComponent.tsx +++ b/src/components/search/filter/containers/FilterVisibleContainerComponent.tsx @@ -4,6 +4,8 @@ import { TouchableOpacity } from 'react-native-gesture-handler'; import FilterContainerComponent, { FilterContainerComponentProps, FilterContainerComponentState } from './FilterContainerComponent'; import computeStyleSheet from './FilterContainerComponentStyles'; +import { Text } from 'react-native'; +import I18n from 'i18n-js'; export interface Props extends FilterContainerComponentProps { expanded?: boolean; @@ -47,9 +49,15 @@ export default class FilterVisibleContainerComponent extends FilterContainerComp {onExpand && ( {expanded ? ( - + + {I18n.t('general.showLess')} + + ) : ( - + + {I18n.t('general.showMore')} + + )} )} diff --git a/src/screens/charging-stations/list/ChargingStations.tsx b/src/screens/charging-stations/list/ChargingStations.tsx index 8d0fcf35e..76c0244c6 100644 --- a/src/screens/charging-stations/list/ChargingStations.tsx +++ b/src/screens/charging-stations/list/ChargingStations.tsx @@ -18,7 +18,7 @@ import LocationManager from '../../../location/LocationManager'; import computeModalStyle from '../../../ModalStyles'; import ProviderFactory from '../../../provider/ProviderFactory'; import BaseProps from '../../../types/BaseProps'; -import ChargingStation, { ChargePointStatus, Connector } from '../../../types/ChargingStation'; +import ChargingStation, { Connector } from '../../../types/ChargingStation'; import { DataResult } from '../../../types/DataResult'; import { GlobalFilters } from '../../../types/Filter'; import SiteArea from '../../../types/SiteArea';