Skip to content

Commit 361b0db

Browse files
committed
UserStatusScreen: Use new SelectableOptionRow.
Which doesn't have the right-facing arrows; those have been misleading here because they make the user think something will expand when they interact with them. See discussion: https://chat.zulip.org/#narrow/stream/48-mobile/topic/User.20status.20items.20look.20odd/near/1166000.
1 parent ca2b541 commit 361b0db

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/user-status/UserStatusScreen.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { AppNavigationProp } from '../nav/AppNavigator';
99
import * as NavigationService from '../nav/NavigationService';
1010
import type { GetText, Dispatch } from '../types';
1111
import { connect } from '../react-redux';
12-
import { Input, OptionButton, Screen, ZulipButton } from '../common';
12+
import { Input, SelectableOptionRow, Screen, ZulipButton } from '../common';
1313
import { getSelfUserStatusText } from '../selectors';
1414
import { IconCancel, IconDone } from '../common/Icons';
1515
import statusSuggestions from './userStatusTextSuggestions';
@@ -90,11 +90,13 @@ class UserStatusScreen extends PureComponent<Props, State> {
9090
keyboardShouldPersistTaps="always"
9191
keyExtractor={item => item}
9292
renderItem={({ item, index }) => (
93-
<OptionButton
93+
<SelectableOptionRow
9494
key={item}
95-
label={item}
96-
onPress={() => {
97-
this.setStatusTextState(_(item));
95+
itemKey={item}
96+
title={item}
97+
selected={item === statusText}
98+
onRequestSelectionChange={itemKey => {
99+
this.setStatusTextState(_(itemKey));
98100
}}
99101
/>
100102
)}

0 commit comments

Comments
 (0)