-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpretty-btns.js
68 lines (66 loc) · 1.71 KB
/
pretty-btns.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import React from "react";
import "./buttons.css";
import ic_arrow_right_dark from "./assets/svgs/arrow_right_dark.svg";
import ic_arrow_right_white from "./assets/svgs/arrow_right_white.svg";
const PrettyBtn = (props) => {
if (props.variant) {
switch (props.variant) {
case "PRIMARY_FILLED_LARGE":
return (
<button
className="PRIMARY_FILLED_LARGE"
onClick={props.onClick}
style={props.style}
>
{props.name || "Done"}
</button>
);
break;
case "SECONDARY_LARGE":
return (
<button
className="SECONDARY_LARGE"
onClick={props.onClick}
style={props.style}
>
{props.name || "Done"}
</button>
);
break;
case "GET_STARTED_PRIMARY":
return (
<button
className="GET_STARTED_PRIMARY"
onClick={props.onClick}
style={props.style}
>
{props.name || "Get Started"}{" "}
<img src={ic_arrow_right_white} className="ICONS" />
</button>
);
break;
case "GET_STARTED_SECONDARY":
return (
<button
className="GET_STARTED_SECONDARY"
onClick={props.onClick}
style={props.style}
>
{props.name || "Get Started"}{" "}
<img src={ic_arrow_right_dark} className="ICONS" />
</button>
);
}
} else {
return (
<button
className="PRIMARY_FILLED_LARGE"
onClick={props.onClick}
style={props.style}
>
{props.name || "Done"}
</button>
);
}
};
export default PrettyBtn;