Skip to content

Commit

Permalink
homescreen_icon [nfc]: Swap TopTabButton with TopTabButtonGeneral
Browse files Browse the repository at this point in the history
to prepare the component for icon swapping.
  • Loading branch information
Leslie Ngo authored and Leslie Ngo committed Nov 8, 2022
1 parent c072bbb commit 913e59a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/HomeScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import LoadingBanner from '../common/LoadingBanner';
import ServerCompatBanner from '../common/ServerCompatBanner';
import ServerPushSetupBanner from '../common/ServerPushSetupBanner';
import { OfflineNoticePlaceholder } from '../boot/OfflineNoticeProvider';
import { Icon } from '../common/Icons';

const styles = createStyleSheet({
wrapper: {
Expand All @@ -43,12 +44,14 @@ export default function HomeScreen(props: Props): Node {
<SafeAreaView mode="padding" edges={['top']} style={styles.wrapper}>
<OfflineNoticePlaceholder />
<View style={styles.iconList}>
<TopTabButton
<TopTabButtonGeneral
name="globe"
onPress={() => {
dispatch(doNarrow(HOME_NARROW));
}}
/>
>
<Icon size={24} style={{ textAlign: 'center ' }} color={BRAND_COLOR} name="globe" />
</TopTabButtonGeneral>
<TopTabButton
name="star"
onPress={() => {
Expand Down

0 comments on commit 913e59a

Please sign in to comment.