From 75f1e9b1e3079a537e90c0c8402845903e5105ac Mon Sep 17 00:00:00 2001 From: Wesley Aptekar-Cassels Date: Thu, 6 May 2021 14:48:02 +0800 Subject: [PATCH] ChatNavBar [nfc]: Rename color to buttonColor. --- src/nav/ChatNavBar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nav/ChatNavBar.js b/src/nav/ChatNavBar.js index 54601ccdcb..23e74866e8 100644 --- a/src/nav/ChatNavBar.js +++ b/src/nav/ChatNavBar.js @@ -23,7 +23,7 @@ type Props = $ReadOnly<{| export default function ChatNavBar(props: Props) { const { narrow, editMessage } = props; const streamColor = useSelector(state => getStreamColorForNarrow(state, narrow)); - const color = + const buttonColor = streamColor === undefined ? BRAND_COLOR : foregroundColorFromBackground(streamColor); const themeColor = useContext(ThemeContext).color; const textColor = @@ -56,10 +56,10 @@ export default function ChatNavBar(props: Props) { alignItems: 'center', }} > - + - <ExtraButton color={color} narrow={narrow} /> - <InfoButton color={color} narrow={narrow} /> + <ExtraButton color={buttonColor} narrow={narrow} /> + <InfoButton color={buttonColor} narrow={narrow} /> </View> <LoadingBanner spinnerColor={spinnerColor}