Skip to content

Commit

Permalink
ChatNavBar [nfc]: Rename color to buttonColor.
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyAC committed May 6, 2021
1 parent 7026f4d commit 75f1e9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nav/ChatNavBar.js
Expand Up @@ -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 =
Expand Down Expand Up @@ -56,10 +56,10 @@ export default function ChatNavBar(props: Props) {
alignItems: 'center',
}}
>
<NavBarBackButton color={color} />
<NavBarBackButton color={buttonColor} />
<Title color={textColor} narrow={narrow} editMessage={editMessage} />
<ExtraButton color={color} narrow={narrow} />
<InfoButton color={color} narrow={narrow} />
<ExtraButton color={buttonColor} narrow={narrow} />
<InfoButton color={buttonColor} narrow={narrow} />
</View>
<LoadingBanner
spinnerColor={spinnerColor}
Expand Down

0 comments on commit 75f1e9b

Please sign in to comment.