Improved group favorite section

This commit is contained in:
Arnaud Vergnet 2020-04-20 09:33:12 +02:00
parent dc3aed8bda
commit 80ff70c1f7
4 changed files with 6 additions and 4 deletions

View file

@ -74,7 +74,7 @@ class GroupListAccordion extends React.Component<Props, State> {
justifyContent: 'center', justifyContent: 'center',
}} }}
left={props => left={props =>
item.id === "0" item.id === 0
? <List.Icon ? <List.Icon
{...props} {...props}
icon={"star"} icon={"star"}

View file

@ -188,7 +188,7 @@ class GroupSelectionScreen extends React.Component<Props, State> {
data.push(fetchedData[key]); data.push(fetchedData[key]);
} }
data.sort(sortName); 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; return data;
} }

View file

@ -213,7 +213,8 @@
"enableStartScreen": "Come here often? Set it as default screen!", "enableStartScreen": "Come here often? Set it as default screen!",
"enableStartOK": "Yes please!", "enableStartOK": "Yes please!",
"enableStartCancel": "Later", "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": { "availableRoomScreen": {
"normalRoom": "Work", "normalRoom": "Work",

View file

@ -213,7 +213,8 @@
"enableStartScreen": "Vous venez souvent ici ? Démarrez l'appli sur cette page!", "enableStartScreen": "Vous venez souvent ici ? Démarrez l'appli sur cette page!",
"enableStartOK": "Oui svp!", "enableStartOK": "Oui svp!",
"enableStartCancel": "Plus tard", "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": { "availableRoomScreen": {
"normalRoom": "Travail", "normalRoom": "Travail",