frontend/packages: add material-ui

This commit is contained in:
Patrik Oldsberg
2020-02-03 00:08:22 +01:00
parent 6199de583c
commit de72125564
4 changed files with 250 additions and 78 deletions
@@ -14,7 +14,9 @@
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"react": "^16.12.0",
"react-dom": "^16.12.0"
"react-dom": "^16.12.0",
"@material-ui/core": "^4.9.1",
"@material-ui/icons": "^4.9.1"
},
"scripts": {
"lint": "web-scripts lint",
@@ -14,7 +14,9 @@
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"react": "^16.12.0",
"react-dom": "^16.12.0"
"react-dom": "^16.12.0",
"@material-ui/core": "^4.9.1",
"@material-ui/icons": "^4.9.1"
},
"scripts": {
"lint": "web-scripts lint",
@@ -1,7 +1,16 @@
import React, { FC } from 'react';
import Button from '@material-ui/core/Button';
const MyComponent: FC<{}> = () => {
return <div>Hello!</div>;
return (
<Button
variant="contained"
color="primary"
onClick={() => window.location.reload()}
>
Hello!
</Button>
);
};
export default MyComponent;