tweak starter pack create button
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
|||||||
View,
|
View,
|
||||||
ViewStyle,
|
ViewStyle,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
|
import {LinearGradient} from 'expo-linear-gradient'
|
||||||
import {AppBskyGraphDefs, AppBskyGraphGetActorStarterPacks} from '@atproto/api'
|
import {AppBskyGraphDefs, AppBskyGraphGetActorStarterPacks} from '@atproto/api'
|
||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
@@ -133,32 +134,41 @@ function EmptyComponent() {
|
|||||||
const {_} = useLingui()
|
const {_} = useLingui()
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
const navigation = useNavigation<NavigationProp>()
|
const navigation = useNavigation<NavigationProp>()
|
||||||
|
const gradient =
|
||||||
|
t.name === 'light'
|
||||||
|
? [t.palette.primary_500, t.palette.primary_400]
|
||||||
|
: [t.palette.primary_600, t.palette.primary_500]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[a.mt_xl, a.px_2xl, a.gap_2xl]}>
|
<LinearGradient
|
||||||
<Text
|
colors={gradient}
|
||||||
style={[
|
style={[a.px_md, a.py_xl, a.justify_between, a.gap_md, a.shadow_lg]}>
|
||||||
a.font_bold,
|
<View style={[a.gap_xs]}>
|
||||||
a.text_lg,
|
<Text
|
||||||
a.text_center,
|
style={[
|
||||||
t.atoms.text_contrast_medium,
|
a.font_bold,
|
||||||
]}>
|
a.text_lg,
|
||||||
You have not created any starter packs yet!
|
t.atoms.text_contrast_medium,
|
||||||
</Text>
|
{color: 'white'},
|
||||||
<Text style={[a.text_center]}>
|
]}>
|
||||||
Create a starter pack now to share your favorite people and feeds with
|
You have not created a starter pack yet!
|
||||||
friends!
|
</Text>
|
||||||
</Text>
|
<Text style={[{color: 'white'}]}>
|
||||||
|
Starter packs let you easily share your favorite feeds and people with
|
||||||
|
your friends.
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
<Button
|
<Button
|
||||||
label={_(msg`Create a starter pack`)}
|
label={_(msg`Create a starter pack`)}
|
||||||
variant="solid"
|
variant="outline"
|
||||||
color="primary"
|
color="primary"
|
||||||
size="medium"
|
size="small"
|
||||||
onPress={() => navigation.navigate('StarterPackWizard')}>
|
onPress={() => navigation.navigate('StarterPackWizard', {})}
|
||||||
|
style={[{width: 100, marginLeft: 'auto'}]}>
|
||||||
<ButtonText>
|
<ButtonText>
|
||||||
<Trans>Create a starter pack</Trans>
|
<Trans>Create</Trans>
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</LinearGradient>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user