From 80ff70c1f71fe9fdd4d3766b9ccfe7ea24be44ac Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Mon, 20 Apr 2020 09:33:12 +0200 Subject: [PATCH] Improved group favorite section --- src/components/Lists/PlanexGroups/GroupListAccordion.js | 2 +- src/screens/Planex/GroupSelectionScreen.js | 2 +- translations/en.json | 3 ++- translations/fr.json | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Lists/PlanexGroups/GroupListAccordion.js b/src/components/Lists/PlanexGroups/GroupListAccordion.js index 552f4c4..76d37c9 100644 --- a/src/components/Lists/PlanexGroups/GroupListAccordion.js +++ b/src/components/Lists/PlanexGroups/GroupListAccordion.js @@ -74,7 +74,7 @@ class GroupListAccordion extends React.Component { justifyContent: 'center', }} left={props => - item.id === "0" + item.id === 0 ? { data.push(fetchedData[key]); } data.sort(sortName); - data.unshift({name: "FAVORITES", id: 0, content: this.state.favoriteGroups}); + data.unshift({name: i18n.t("planexScreen.favorites"), id: 0, content: this.state.favoriteGroups}); return data; } diff --git a/translations/en.json b/translations/en.json index 8df9af2..124899c 100644 --- a/translations/en.json +++ b/translations/en.json @@ -213,7 +213,8 @@ "enableStartScreen": "Come here often? Set it as default screen!", "enableStartOK": "Yes please!", "enableStartCancel": "Later", - "noGroupSelected": "No group selected. Please select your group using the big beautiful red button bellow." + "noGroupSelected": "No group selected. Please select your group using the big beautiful red button bellow.", + "favorites": "Favorites" }, "availableRoomScreen": { "normalRoom": "Work", diff --git a/translations/fr.json b/translations/fr.json index 941c1c8..c10a0ee 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -213,7 +213,8 @@ "enableStartScreen": "Vous venez souvent ici ? Démarrez l'appli sur cette page!", "enableStartOK": "Oui svp!", "enableStartCancel": "Plus tard", - "noGroupSelected": "Pas de group sélectionné. Merci de choisir un groupe avec le beau bouton rouge ci-dessous." + "noGroupSelected": "Pas de group sélectionné. Merci de choisir un groupe avec le beau bouton rouge ci-dessous.", + "favorites": "Favoris" }, "availableRoomScreen": { "normalRoom": "Travail",