Better formatting in the menu

This commit is contained in:
Yohan Simard 2019-11-08 17:07:45 +01:00
parent 819a8624c7
commit 9503c781ca

View file

@ -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();
}
}