Browse Source

Better formatting in the menu

Yohan Simard 2 years ago
parent
commit
9503c781ca
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      screens/SelfMenuScreen.js

+ 5
- 1
screens/SelfMenuScreen.js View File

@@ -156,7 +156,7 @@ export default class SelfMenuScreen extends FetchedDataSectionList {
156 156
                                 <Text style={{
157 157
                                     marginTop: 5,
158 158
                                     marginBottom: 5
159
-                                }}>{object.name.toLowerCase()}</Text>
159
+                                }}>{this.formatName(object.name)}</Text>
160 160
                                 : <View/>}
161 161
                         </View>)}
162 162
                 </CardItem>
@@ -164,5 +164,9 @@ export default class SelfMenuScreen extends FetchedDataSectionList {
164 164
         );
165 165
     }
166 166
 
167
+    formatName(name: String) {
168
+        return name.charAt(0) + name.substr(1).toLowerCase();
169
+    }
170
+
167 171
 }
168 172
 

Loading…
Cancel
Save