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