feat: add custom style to new link
This commit is contained in:
parent
93322bfefa
commit
4ad9470808
|
@ -8,11 +8,12 @@ type LinkWithArrowProps = {
|
||||||
to: string
|
to: string
|
||||||
arrowLeft?: boolean
|
arrowLeft?: boolean
|
||||||
arrowRight?: boolean
|
arrowRight?: boolean
|
||||||
|
style?: React.CSSProperties
|
||||||
}
|
}
|
||||||
|
|
||||||
const LinkWithArrow = ({ text, to, arrowLeft, arrowRight }: LinkWithArrowProps) => {
|
const LinkWithArrow = ({ text, to, arrowLeft, arrowRight, style }: LinkWithArrowProps) => {
|
||||||
return (
|
return (
|
||||||
<Stack style={{ margin: '2% 0 4%', maxWidth: 'fit-content' }}>
|
<Stack style={{ maxWidth: 'fit-content', ...style }}>
|
||||||
<Text size={15}>
|
<Text size={15}>
|
||||||
<XStack space={'$1'} style={{ alignItems: 'center' }}>
|
<XStack space={'$1'} style={{ alignItems: 'center' }}>
|
||||||
{arrowLeft && <ArrowLeftIcon size={16} color="#2A4CF4" />}
|
{arrowLeft && <ArrowLeftIcon size={16} color="#2A4CF4" />}
|
||||||
|
|
Loading…
Reference in New Issue