File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ const primaryStyle = clsx(
12
12
) ;
13
13
14
14
const secondaryStyle = clsx (
15
+ baseStyle ,
16
+ "bg-transparent border-2 border-white" ,
17
+ "hover:bg-primary-blue hover:border-primary-blue hover:text-background-2"
18
+ ) ;
19
+
20
+ const tertiaryStyle = clsx (
15
21
baseStyle ,
16
22
"bg-transparent border-2 border-white" ,
17
23
"hover:bg-white/10"
@@ -21,7 +27,7 @@ const secondaryStyle = clsx(
21
27
interface IButton extends React . ComponentProps < "button" > {
22
28
children : React . ReactNode ;
23
29
onClick ?: ( ) => void ;
24
- variant ?: "primary" | "secondary" ;
30
+ variant ?: "primary" | "secondary" | "tertiary" ;
25
31
className ?: string ;
26
32
}
27
33
@@ -33,9 +39,12 @@ const Button: React.FC<IButton> = ({
33
39
...props
34
40
} ) => (
35
41
< button
36
- className = {
37
- clsx ( variant === "primary" ? primaryStyle : secondaryStyle , className )
38
- }
42
+ className = { clsx (
43
+ variant === "primary" && primaryStyle ,
44
+ variant === "secondary" && secondaryStyle ,
45
+ variant === "tertiary" && tertiaryStyle ,
46
+ className
47
+ ) }
39
48
{ ...{ onClick, ...props } }
40
49
>
41
50
{ children }
You can’t perform that action at this time.
0 commit comments