Add theme provider for notes

This commit is contained in:
J Francisco Rader committed 2021-02-21 12:49:09 -05:00
1 parent 4acb214ec9
commit 9f04ac3243
13 files changed
+205 -198

No files matched your search

+18 -6
View File
@@ -1,18 +1,30 @@
import React from 'react';
import { yellow } from '@material-ui/core/colors';
import useStyles from './notes.styles';
import { Paper } from '@material-ui/core';
import { makeStyles, Paper } from '@material-ui/core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faStickyNote } from '@fortawesome/free-solid-svg-icons';
const useStyles = makeStyles((theme) => ({
header: {
width: '100%',
display: 'flex',
flexFlow: 'row nowrap',
justifyContent: 'center',
alignItems: 'center',
textAlign: 'center',
height: '60px',
},
icon: {
color: theme.palette.primary.main,
fontSize: 40,
},
}));
const NotesTitle = () => {
const classes = useStyles();
return (
<Paper elevation={24} square variant='outlined' className={classes.header}>
<FontAwesomeIcon icon={faStickyNote} color={yellow[800]} size='lg' />
<FontAwesomeIcon icon={faStickyNote} className={classes.icon} size='lg' />
</Paper>
);
};