File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -94,17 +94,19 @@ export default function UserStatusScreen(props: Props): Node {
94
94
data = { statusSuggestions }
95
95
keyboardShouldPersistTaps = "always"
96
96
keyExtractor = { item => item }
97
- renderItem = { ( { item, index } ) => (
98
- < SelectableOptionRow
99
- key = { item }
100
- itemKey = { item }
101
- title = { item }
102
- selected = { item === statusTextFromInputValue ( textInputValue ) }
103
- onRequestSelectionChange = { itemKey => {
104
- setTextInputValue ( _ ( itemKey ) ) ;
105
- } }
106
- />
107
- ) }
97
+ renderItem = { ( { item : text , index } ) => {
98
+ const translatedText = _ ( text ) ;
99
+ return (
100
+ < SelectableOptionRow
101
+ itemKey = { text }
102
+ title = { translatedText }
103
+ selected = { translatedText === statusTextFromInputValue ( textInputValue ) }
104
+ onRequestSelectionChange = { ( ) => {
105
+ setTextInputValue ( translatedText ) ;
106
+ } }
107
+ />
108
+ ) ;
109
+ } }
108
110
/>
109
111
< View style = { styles . buttonsWrapper } >
110
112
< ZulipButton
You can’t perform that action at this time.
0 commit comments