-
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathTask02.js
More file actions
49 lines (37 loc) · 1.12 KB
/
Task02.js
File metadata and controls
49 lines (37 loc) · 1.12 KB
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
import React from 'react';
import Button from './../src/components/Button';
import { ThemeProvider } from 'styled-components';
import { Row, Col, Button as RBButton } from 'react-bootstrap';
const theme = {
buttons: {
primary: {
background: '#007bff',
color: 'white',
},
secondary: {
background: 'green',
color: 'white',
},
},
};
const Task02 = () => {
return (<>
<Row>
<Col>
<RBButton variant="primary" size="lg">Button!</RBButton>
</Col>
<Col>
<ThemeProvider theme={theme}>
<Button variant="primary">Primary</Button>
{/* <Button variant="secondary">Secondary</Button> */}
{/* <Button size="sm">Small</Button> */}
{/* <Button size="lg">Large</Button> */}
{/* <Button active>Active</Button> */}
{/* <Button disabled>Disabled</Button> */}
</ThemeProvider>
</Col>
</Row>
</>
)
}
export default Task02;