add link wrapper

This commit is contained in:
Hailey
2024-06-03 09:25:59 -07:00
parent 02542f9ad3
commit 64ccace6b6
@@ -3,12 +3,14 @@ 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 (
<Link to={{screen: 'StarterPack', params: {id: 123}}}>
<View <View
style={[ style={[
a.flex_row, a.flex_row,
@@ -31,5 +33,6 @@ export function StarterPackCard({hideTopBorder}: {hideTopBorder?: boolean}) {
</Text> </Text>
</View> </View>
</View> </View>
</Link>
) )
} }