This commit is contained in:
Hailey
2024-06-11 14:48:28 -07:00
parent d9a286cfc8
commit fa0a0a44ac
+7 -5
View File
@@ -1,6 +1,7 @@
import React from 'react' import React from 'react'
import {Keyboard, TouchableOpacity, View} from 'react-native' import {Keyboard, TouchableOpacity, View} from 'react-native'
import {KeyboardAwareScrollView} from 'react-native-keyboard-controller' import {KeyboardAwareScrollView} from 'react-native-keyboard-controller'
import {useSafeAreaInsets} from 'react-native-safe-area-context'
import { import {
AppBskyActorDefs, AppBskyActorDefs,
AppBskyGraphDefs, AppBskyGraphDefs,
@@ -478,6 +479,7 @@ function Footer({
const t = useTheme() const t = useTheme()
const [state, dispatch] = useWizardState() const [state, dispatch] = useWizardState()
const editDialogControl = useDialogControl() const editDialogControl = useDialogControl()
const {bottom: bottomInset} = useSafeAreaInsets()
const items = state.currentStep === 'Profiles' ? state.profiles : state.feeds const items = state.currentStep === 'Profiles' ? state.profiles : state.feeds
@@ -493,13 +495,13 @@ function Footer({
a.border_t, a.border_t,
a.align_center, a.align_center,
a.px_md, a.px_md,
a.pt_lg, a.pt_xl,
a.pb_5xl, a.gap_md,
a.gap_sm,
t.atoms.bg, t.atoms.bg,
t.atoms.border_contrast_medium, t.atoms.border_contrast_medium,
{ {
height: 190, height: 220,
paddingBottom: 12 + bottomInset,
}, },
isNative && [ isNative && [
a.border_l, a.border_l,
@@ -512,7 +514,7 @@ function Footer({
], ],
]}> ]}>
{items.length > 0 && ( {items.length > 0 && (
<View style={[a.absolute, {right: 14, top: 23}]}> <View style={[a.absolute, {right: 14, top: 26}]}>
<Text style={[a.font_bold]}> <Text style={[a.font_bold]}>
{items.length}/{state.currentStep === 'Profiles' ? 50 : 3} {items.length}/{state.currentStep === 'Profiles' ? 50 : 3}
</Text> </Text>