From 9503c781ca492ec34cbe310b7a07665785cdf3b6 Mon Sep 17 00:00:00 2001 From: Yohan Simard Date: Fri, 8 Nov 2019 17:07:45 +0100 Subject: [PATCH] Better formatting in the menu --- screens/SelfMenuScreen.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/screens/SelfMenuScreen.js b/screens/SelfMenuScreen.js index 3e9257c..76bb27b 100644 --- a/screens/SelfMenuScreen.js +++ b/screens/SelfMenuScreen.js @@ -156,7 +156,7 @@ export default class SelfMenuScreen extends FetchedDataSectionList { {object.name.toLowerCase()} + }}>{this.formatName(object.name)} : } )} @@ -164,5 +164,9 @@ export default class SelfMenuScreen extends FetchedDataSectionList { ); } + formatName(name: String) { + return name.charAt(0) + name.substr(1).toLowerCase(); + } + }