Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit a0c30a6

Browse files
committed
Implement channel alert on top of new channel icon
1 parent d864fd3 commit a0c30a6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/view/home.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,18 @@ const headerStyles = StyleSheet.create({
181181
channelBtn: {
182182
marginLeft: 3,
183183
},
184+
channelAlert: {
185+
position: 'absolute',
186+
top: 17,
187+
right: 21,
188+
height: 10,
189+
width: 10,
190+
backgroundColor: color.pinkSig,
191+
borderColor: color.white,
192+
borderRadius: 50,
193+
borderStyle: 'solid',
194+
borderWidth: 2,
195+
},
184196
settingsBtn: {
185197
marginRight: 3,
186198
},
@@ -194,6 +206,7 @@ const HomeHeader = ({ goChannels, goSettings, showChannelAlert }) => (
194206
<Header>
195207
<Button onPress={goChannels} style={headerStyles.channelBtn}>
196208
<ChannelIcon height={24 * 0.9} width={25 * 0.9} />
209+
{showChannelAlert ? <View style={headerStyles.channelAlert} /> : null}
197210
</Button>
198211
<Title title="Wallet" />
199212
<Button onPress={goSettings} style={headerStyles.settingsBtn}>

0 commit comments

Comments
 (0)