feat: add custom style to new link

This commit is contained in:
RadoslavDimchev 2023-08-30 15:40:23 +03:00
parent 93322bfefa
commit 4ad9470808
1 changed files with 3 additions and 2 deletions

View File

@ -8,11 +8,12 @@ type LinkWithArrowProps = {
to: string
arrowLeft?: boolean
arrowRight?: boolean
style?: React.CSSProperties
}
const LinkWithArrow = ({ text, to, arrowLeft, arrowRight }: LinkWithArrowProps) => {
const LinkWithArrow = ({ text, to, arrowLeft, arrowRight, style }: LinkWithArrowProps) => {
return (
<Stack style={{ margin: '2% 0 4%', maxWidth: 'fit-content' }}>
<Stack style={{ maxWidth: 'fit-content', ...style }}>
<Text size={15}>
<XStack space={'$1'} style={{ alignItems: 'center' }}>
{arrowLeft && <ArrowLeftIcon size={16} color="#2A4CF4" />}