diff options
Diffstat (limited to 'src/components/atoms/buttons')
| -rw-r--r-- | src/components/atoms/buttons/button-link.stories.tsx | 3 | ||||
| -rw-r--r-- | src/components/atoms/buttons/button-link.tsx | 13 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/components/atoms/buttons/button-link.stories.tsx b/src/components/atoms/buttons/button-link.stories.tsx index 22d13f6..ff0a67f 100644 --- a/src/components/atoms/buttons/button-link.stories.tsx +++ b/src/components/atoms/buttons/button-link.stories.tsx @@ -8,6 +8,7 @@ export default { title: 'Atoms/Buttons/ButtonLink', component: ButtonLink, args: { + external: false, shape: 'rectangle', }, argTypes: { @@ -79,7 +80,7 @@ export default { type: 'select', }, description: 'The link kind.', - options: ['primary', 'secondary'], + options: ['primary', 'secondary', 'tertiary'], table: { category: 'Options', defaultValue: { summary: 'secondary' }, diff --git a/src/components/atoms/buttons/button-link.tsx b/src/components/atoms/buttons/button-link.tsx index 989f737..7182d94 100644 --- a/src/components/atoms/buttons/button-link.tsx +++ b/src/components/atoms/buttons/button-link.tsx @@ -63,13 +63,12 @@ const ButtonLink: FC<ButtonLinkProps> = ({ {children} </a> ) : ( - <Link href={target}> - <a - className={`${styles.btn} ${kindClass} ${shapeClass} ${className}`} - {...props} - > - {children} - </a> + <Link + {...props} + className={`${styles.btn} ${kindClass} ${shapeClass} ${className}`} + href={target} + > + {children} </Link> ); }; |
