Display clubs the user is a manager of in first
This commit is contained in:
부모
ebbd4df591
커밋
8563fea835
1개의 변경된 파일과 3개의 추가작업 그리고 0개의 파일을 삭제
|
@ -269,6 +269,8 @@ class ProfileScreen extends React.Component<Props, State> {
|
|||
|
||||
clubKeyExtractor = (item: Object) => item.name;
|
||||
|
||||
sortClubList = (a: Object, b: Object) => a.is_manager ? -1 : 1;
|
||||
|
||||
/**
|
||||
* Renders the list of clubs the user is part of
|
||||
*
|
||||
|
@ -276,6 +278,7 @@ class ProfileScreen extends React.Component<Props, State> {
|
|||
* @return {*}
|
||||
*/
|
||||
getClubList(list: Array<Object>) {
|
||||
list.sort(this.sortClubList);
|
||||
return (
|
||||
//$FlowFixMe
|
||||
<FlatList
|
||||
|
|
불러오는 중…
Reference in a new issue