Update link component

This commit is contained in:
Hazem Krimi
2021-04-14 23:08:25 +01:00
parent bf30b856bc
commit f5a64651c5
2 changed files with 22 additions and 2 deletions
+11 -1
View File
@@ -4,7 +4,17 @@ import { Wrapper } from './styles';
type LinkProps = {
href: string;
children?: React.ReactNode | JSX.Element | string;
color?: 'client' | 'productOwner' | 'developer' | 'admin' | string;
color?:
| 'client'
| 'productOwner'
| 'developer'
| 'admin'
| 'success'
| 'warning'
| 'error'
| 'black'
| 'white'
| string;
className?: string;
iconLeft?: React.SVGProps<SVGSVGElement>;
onClick?: () => void;
+11 -1
View File
@@ -1,7 +1,17 @@
import styled, { css } from 'styled-components';
type WrapperProps = {
color?: 'client' | 'productOwner' | 'developer' | 'admin' | string;
color?:
| 'client'
| 'productOwner'
| 'developer'
| 'admin'
| 'success'
| 'warning'
| 'error'
| 'black'
| 'white'
| string;
iconLeft?: React.SVGProps<SVGSVGElement>;
};