|
@@ -64,6 +64,7 @@ class ClubListScreen extends React.Component<Props, State> {
|
64
|
64
|
getRenderItem = ({item}: Object) => {
|
65
|
65
|
const onPress = this.onListItemPress.bind(this, item);
|
66
|
66
|
const categoriesRender = this.getCategoriesRender.bind(this, item.category);
|
|
67
|
+ const hasManagers = item.responsibles.length > 0;
|
67
|
68
|
return (
|
68
|
69
|
<List.Item
|
69
|
70
|
title={item.name}
|
|
@@ -74,6 +75,17 @@ class ClubListScreen extends React.Component<Props, State> {
|
74
|
75
|
style={{backgroundColor: 'transparent'}}
|
75
|
76
|
size={64}
|
76
|
77
|
source={{uri: item.logo}}/>}
|
|
78
|
+ right={(props) => <Avatar.Icon
|
|
79
|
+ {...props}
|
|
80
|
+ style={{
|
|
81
|
+ marginTop: 'auto',
|
|
82
|
+ marginBottom: 'auto',
|
|
83
|
+ backgroundColor: 'transparent',
|
|
84
|
+ }}
|
|
85
|
+ size={48}
|
|
86
|
+ icon={hasManagers ? "check-circle-outline" : "alert-circle-outline"}
|
|
87
|
+ color={hasManagers ? this.colors.success : this.colors.primary}
|
|
88
|
+ />}
|
77
|
89
|
/>
|
78
|
90
|
);
|
79
|
91
|
};
|