diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-10-10 14:11:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 14:11:42 +0300 |
commit | 2f96d3e26f433a57af26ecf2ec34b9fec4183d71 (patch) | |
tree | a8c2b1daf5170923f9e7ccb46f098e30d51e8a08 /src/demo/Button | |
parent | c33c6a521325adafb250124d2814423b3a4187b5 (diff) | |
parent | 36c0a6b3e7ac72e4e787d5def6b0cc03eae7db6c (diff) | |
download | react-benzin-2f96d3e26f433a57af26ecf2ec34b9fec4183d71.tar.gz |
Merge pull request #15 from eug-vs/refactor/orientation
Revise BENZIN orientation
Diffstat (limited to 'src/demo/Button')
-rw-r--r-- | src/demo/Button/Button.tsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/demo/Button/Button.tsx b/src/demo/Button/Button.tsx new file mode 100644 index 0000000..6bc0f98 --- /dev/null +++ b/src/demo/Button/Button.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import { Button as MaterialButton } from '@material-ui/core'; + + +interface PropTypes { + color: 'primary' | 'secondary'; +} + +const Button: React.FC<PropTypes> = ({ color, children }) => ( + <MaterialButton + variant="contained" + color={color} + children={children} + /> +); + + +export default Button; |