Add build version to menu

This commit is contained in:
Paul Frazee 2022-12-06 12:40:40 -06:00
parent 246b0e19e1
commit 588aface7c
6 changed files with 27 additions and 3 deletions

View file

@ -21,7 +21,7 @@ export function UserAvatar({
size: number
handle: string
displayName: string | undefined
userAvatar: string | null | undefined
userAvatar?: string | null
setUserAvatar?: React.Dispatch<React.SetStateAction<string | null>>
}) {
const initials = getInitials(displayName || handle)

View file

@ -17,7 +17,7 @@ export function UserBanner({
setUserBanner,
}: {
handle: string
userBanner: string | null | undefined
userBanner?: string | null
setUserBanner?: React.Dispatch<React.SetStateAction<string | null>>
}) {
const gradient = getGradient(handle)

View file

@ -7,7 +7,8 @@ import {
View,
ViewStyle,
} from 'react-native'
import {colors} from '../lib/styles'
import VersionNumber from 'react-native-version-number'
import {s, colors} from '../lib/styles'
import {ScreenParams} from '../routes'
import {useStores} from '../../state'
import {
@ -171,6 +172,12 @@ export const Menu = ({navIdx, visible}: ScreenParams) => {
))
: undefined}
</View>
<View style={styles.footer}>
<Text style={s.gray4}>
Build version {VersionNumber.appVersion} ({VersionNumber.buildVersion}
)
</Text>
</View>
</View>
)
}
@ -243,4 +250,9 @@ const styles = StyleSheet.create({
fontWeight: 'bold',
color: colors.white,
},
footer: {
paddingHorizontal: 14,
paddingVertical: 18,
},
})