Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import {Link} from 'react-router-dom'
- import { makeStyles } from '@material-ui/core/styles';
- import Fab from '@material-ui/core/Fab';
- import AddIcon from '@material-ui/icons/Add'
- const useStyles = makeStyles(theme => ({
- fab: {
- margin: theme.spacing(1),
- },
- }));
- export default function List() {
- const classes = useStyles();
- return (
- <div>
- <header className='header'>
- <h1>List</h1>
- </header>
- <div>
- {/* <Link to="/Form"><button className="button">Dodaj</button></Link> */}
- <Link to="/Form">
- <Fab color="secondary" aria-label="add" className={classes.margin}>
- <AddIcon/>
- </Fab></Link>
- </div>
- <footer>
- </footer>
- </div>
- );
- }
- //export default List;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement