Display clubs the user is a manager of in first

这个提交包含在:
Arnaud Vergnet 2020-04-10 00:37:51 +02:00
父节点 ebbd4df591
当前提交 8563fea835

查看文件

@ -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