Update api nsids

This commit is contained in:
Paul Frazee 2022-10-12 15:18:46 -05:00
parent c9388a3cc5
commit 0c0c9eb05c
72 changed files with 1758 additions and 579 deletions

View file

@ -56,10 +56,12 @@ export const MainMenu = observer(
icon,
label,
url,
count,
}: {
icon: IconProp
label: string
url: string
count?: number
}) => (
<TouchableOpacity
style={[styles.menuItem, styles.menuItemMargin]}
@ -75,6 +77,11 @@ export const MainMenu = observer(
/>
)}
</View>
{count ? (
<View style={styles.menuItemCount}>
<Text style={styles.menuItemCountLabel}>{count}</Text>
</View>
) : undefined}
<Text style={styles.menuItemLabel} numberOfLines={1}>
{label}
</Text>
@ -123,6 +130,7 @@ export const MainMenu = observer(
icon={['far', 'bell']}
label="Notifications"
url="/notifications"
count={store.me.notificationCount}
/>
</Animated.View>
</View>
@ -212,4 +220,18 @@ const styles = StyleSheet.create({
menuItemLabel: {
fontSize: 13,
},
menuItemCount: {
position: 'absolute',
left: 48,
top: 10,
backgroundColor: colors.red3,
paddingHorizontal: 4,
paddingBottom: 1,
borderRadius: 6,
},
menuItemCountLabel: {
fontSize: 12,
fontWeight: 'bold',
color: colors.white,
},
})