Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
fix(buttoncard): added correct icon to component
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzschoff committed Jul 12, 2022
1 parent b1a2ec5 commit 605ac77
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions src/components/ButtonCard/ButtonCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import clsx from 'clsx';
import { Icon } from 'components/Icon/Icon';
import { ButtonHTMLAttributes } from 'react';

export interface ButtonCardProps extends ButtonHTMLAttributes<HTMLButtonElement> {
Expand Down Expand Up @@ -52,32 +53,11 @@ export const ButtonCard: React.FC<ButtonCardProps> = ({

<div
className={clsx('ui-absolute ui-top-1/2 ui--translate-y-1/2', {
'ui-left-8': direction === 'right',
'ui-right-8 ui-rotate-180': direction === 'left'
'ui-left-4 -ui-rotate-90': direction === 'right',
'ui-right-4': direction === 'left'
})}
>
<svg
fill='none'
height='24'
viewBox='0 0 24 24'
width='24'
xmlns='http://www.w3.org/2000/svg'
>
<path
d='M11 16L7 12L11 8'
stroke='#00D1FF'
strokeLinecap='round'
strokeLinejoin='round'
strokeWidth='2'
/>
<path
d='M7 12H17.3291'
stroke='#00D1FF'
strokeLinecap='round'
strokeLinejoin='round'
strokeWidth='2'
/>
</svg>
<Icon name='Link-off' className='ui-text-2xl dark:ui-text-primary'></Icon>
</div>
</div>
</button>
Expand Down

0 comments on commit 605ac77

Please sign in to comment.