diff --git a/screens/Amicale/ClubDisplayScreen.js b/screens/Amicale/ClubDisplayScreen.js index 65a1d37..8da0375 100644 --- a/screens/Amicale/ClubDisplayScreen.js +++ b/screens/Amicale/ClubDisplayScreen.js @@ -66,14 +66,16 @@ class ClubDisplayScreen extends React.Component { for (let i = 0; i < resp.length; i++) { final.push({resp[i]}) } + const hasManagers = resp.length > 0; return ( } /> diff --git a/screens/Amicale/ClubListScreen.js b/screens/Amicale/ClubListScreen.js index ceb4710..3a67660 100644 --- a/screens/Amicale/ClubListScreen.js +++ b/screens/Amicale/ClubListScreen.js @@ -64,6 +64,7 @@ class ClubListScreen extends React.Component { getRenderItem = ({item}: Object) => { const onPress = this.onListItemPress.bind(this, item); const categoriesRender = this.getCategoriesRender.bind(this, item.category); + const hasManagers = item.responsibles.length > 0; return ( { style={{backgroundColor: 'transparent'}} size={64} source={{uri: item.logo}}/>} + right={(props) => } /> ); }; diff --git a/translations/en.json b/translations/en.json index 8d4b630..b5b7ed5 100644 --- a/translations/en.json +++ b/translations/en.json @@ -245,7 +245,8 @@ "clubs": { "clubList": "Club list", "managers": "Managers", - "managersSubtitle": "These people make the club live" + "managersSubtitle": "These people make the club live", + "managersUnavailable": "This club has no one :(" }, "dialog": { "ok": "OK", diff --git a/translations/fr.json b/translations/fr.json index 0be8608..94ff780 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -246,7 +246,8 @@ "clubs": { "clubList": "Liste des clubs", "managers": "Responsables", - "managersSubtitle": "Ces personnes font vivre le club" + "managersSubtitle": "Ces personnes font vivre le club", + "managersUnavailable": "Ce club est tout seul :(" }, "dialog": { "ok": "OK",