Pass through props to ProfileCard.Link

This commit is contained in:
Eric Bailey
2024-07-01 14:26:55 -05:00
parent 79a308fdf7
commit a0480f5b7d
+8 -2
View File
@@ -91,14 +91,20 @@ export function Header({
return <View style={[a.flex_row, a.align_center, a.gap_sm]}>{children}</View>
}
export function Link({did, children}: {did: string} & Omit<LinkProps, 'to'>) {
export function Link({
did,
children,
style,
...rest
}: {did: string} & Omit<LinkProps, 'to'>) {
return (
<InternalLink
to={{
screen: 'Profile',
params: {name: did},
}}
style={[a.flex_col]}>
style={[a.flex_col, style]}
{...rest}>
{children}
</InternalLink>
)