apply shadow directly to button

This commit is contained in:
Samuel Newman
2026-01-30 09:11:50 +02:00
parent 4b86444bd8
commit b5b26a5478
+16 -18
View File
@@ -79,7 +79,18 @@ export const SplashScreen = ({
<View <View
testID="signinOrCreateAccount" testID="signinOrCreateAccount"
style={[a.px_5xl, a.gap_md, a.pb_sm]}> style={[a.px_5xl, a.gap_md, a.pb_sm]}>
<View <Button
testID="createAccountButton"
onPress={() => {
onPressCreateAccount()
playHaptic('Light')
}}
label={_(msg`Create new account`)}
accessibilityHint={_(
msg`Opens flow to create a new Bluesky account`,
)}
size="large"
color={isDarkMode ? 'secondary_inverted' : 'secondary'}
style={[ style={[
t.atoms.shadow_md, t.atoms.shadow_md,
{ {
@@ -90,23 +101,10 @@ export const SplashScreen = ({
}, },
}, },
]}> ]}>
<Button <ButtonText>
testID="createAccountButton" <Trans>Create account</Trans>
onPress={() => { </ButtonText>
onPressCreateAccount() </Button>
playHaptic('Light')
}}
label={_(msg`Create new account`)}
accessibilityHint={_(
msg`Opens flow to create a new Bluesky account`,
)}
size="large"
color={isDarkMode ? 'secondary_inverted' : 'secondary'}>
<ButtonText>
<Trans>Create account</Trans>
</ButtonText>
</Button>
</View>
<Button <Button
testID="signInButton" testID="signInButton"