mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Add theme provider for notes
This commit is contained in:
13 files changed
+205
-198
No files matched your search
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user