Showing
1 changed file
with
10 additions
and
2 deletions
... | @@ -10,10 +10,18 @@ const ButtonBlock = styled.div` | ... | @@ -10,10 +10,18 @@ const ButtonBlock = styled.div` |
10 | cursor: pointer; | 10 | cursor: pointer; |
11 | `; | 11 | `; |
12 | 12 | ||
13 | -const Buttons = ({ children, color, float, width, fontsize }) => { | 13 | +const Buttons = ({ |
14 | + children, | ||
15 | + size = 'lg', | ||
16 | + color, | ||
17 | + float, | ||
18 | + width, | ||
19 | + fontsize, | ||
20 | + icon = '', | ||
21 | +}) => { | ||
14 | return ( | 22 | return ( |
15 | <ButtonBlock float={float} width={width} fontsize={fontsize}> | 23 | <ButtonBlock float={float} width={width} fontsize={fontsize}> |
16 | - <Button size="lg" color={color || 'blue'}> | 24 | + <Button size={size} color={color || 'blue'} rightIcon={icon}> |
17 | {children} | 25 | {children} |
18 | </Button> | 26 | </Button> |
19 | </ButtonBlock> | 27 | </ButtonBlock> | ... | ... |
-
Please register or login to post a comment