forked from vergnet/application-amicale
Better formatting in the menu
This commit is contained in:
parent
819a8624c7
commit
9503c781ca
1 changed files with 5 additions and 1 deletions
|
@ -156,7 +156,7 @@ export default class SelfMenuScreen extends FetchedDataSectionList {
|
|||
<Text style={{
|
||||
marginTop: 5,
|
||||
marginBottom: 5
|
||||
}}>{object.name.toLowerCase()}</Text>
|
||||
}}>{this.formatName(object.name)}</Text>
|
||||
: <View/>}
|
||||
</View>)}
|
||||
</CardItem>
|
||||
|
@ -164,5 +164,9 @@ export default class SelfMenuScreen extends FetchedDataSectionList {
|
|||
);
|
||||
}
|
||||
|
||||
formatName(name: String) {
|
||||
return name.charAt(0) + name.substr(1).toLowerCase();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue