Skip to content

Commit 9318bf3

Browse files
committed
InputRowRadioButtons: Use theme color for IconRight, like NestedNavRow
1 parent 6e7b452 commit 9318bf3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/common/InputRowRadioButtons.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* @flow strict-local */
2-
import React, { useCallback, useRef, useMemo, useEffect } from 'react';
2+
import React, { useCallback, useRef, useMemo, useEffect, useContext } from 'react';
33
import type { Node } from 'react';
44
import { View } from 'react-native';
55
import invariant from 'invariant';
@@ -8,11 +8,12 @@ import { CommonActions } from '@react-navigation/native';
88
import type { LocalizableText } from '../types';
99
import type { GlobalParamList } from '../nav/globalTypes';
1010
import { randString } from '../utils/misc';
11-
import { BRAND_COLOR, createStyleSheet } from '../styles';
11+
import { createStyleSheet } from '../styles';
1212
import Touchable from './Touchable';
1313
import ZulipTextIntl from './ZulipTextIntl';
1414
import { IconRight } from './Icons';
1515
import type { AppNavigationMethods } from '../nav/AppNavigator';
16+
import { ThemeContext } from '../styles/theme';
1617

1718
type Item<TKey> = $ReadOnly<{|
1819
key: TKey,
@@ -128,6 +129,7 @@ export default function InputRowRadioButtons<TItemKey: string>(props: Props<TIte
128129
// It'll also be its width.
129130
const kRightArrowIconSize = 24;
130131

132+
const themeData = useContext(ThemeContext);
131133
const styles = useMemo(
132134
() =>
133135
createStyleSheet({
@@ -164,7 +166,7 @@ export default function InputRowRadioButtons<TItemKey: string>(props: Props<TIte
164166
<ZulipTextIntl text={selectedItem.title} style={styles.valueTitle} />
165167
</View>
166168
<View style={styles.iconRightWrapper}>
167-
<IconRight size={kRightArrowIconSize} color={BRAND_COLOR} />
169+
<IconRight size={kRightArrowIconSize} color={themeData.color} />
168170
</View>
169171
</View>
170172
</Touchable>

0 commit comments

Comments
 (0)