add link wrapper
This commit is contained in:
@@ -3,33 +3,36 @@ import {View} from 'react-native'
|
||||
|
||||
import {atoms as a, useTheme} from '#/alf'
|
||||
import {StarterPackIcon} from '#/components/icons/StarterPackIcon'
|
||||
import {Link} from '#/components/Link'
|
||||
import {Text} from '#/components/Typography'
|
||||
|
||||
export function StarterPackCard({hideTopBorder}: {hideTopBorder?: boolean}) {
|
||||
const t = useTheme()
|
||||
|
||||
return (
|
||||
<View
|
||||
style={[
|
||||
a.flex_row,
|
||||
!hideTopBorder && a.border_t,
|
||||
a.px_xl,
|
||||
a.py_lg,
|
||||
a.gap_md,
|
||||
t.atoms.border_contrast_low,
|
||||
]}>
|
||||
<StarterPackIcon width={36} height={36} />
|
||||
<View style={a.gap_md}>
|
||||
<View>
|
||||
<Text style={[a.font_bold, a.text_md]}>Science</Text>
|
||||
<Text style={[t.atoms.text_contrast_medium]}>
|
||||
Starter pack by @bossett.social
|
||||
<Link to={{screen: 'StarterPack', params: {id: 123}}}>
|
||||
<View
|
||||
style={[
|
||||
a.flex_row,
|
||||
!hideTopBorder && a.border_t,
|
||||
a.px_xl,
|
||||
a.py_lg,
|
||||
a.gap_md,
|
||||
t.atoms.border_contrast_low,
|
||||
]}>
|
||||
<StarterPackIcon width={36} height={36} />
|
||||
<View style={a.gap_md}>
|
||||
<View>
|
||||
<Text style={[a.font_bold, a.text_md]}>Science</Text>
|
||||
<Text style={[t.atoms.text_contrast_medium]}>
|
||||
Starter pack by @bossett.social
|
||||
</Text>
|
||||
</View>
|
||||
<Text style={[a.font_bold, t.atoms.text_contrast_medium]}>
|
||||
380 users have joined!
|
||||
</Text>
|
||||
</View>
|
||||
<Text style={[a.font_bold, t.atoms.text_contrast_medium]}>
|
||||
380 users have joined!
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user