mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
styling: Enforced styling across all files (#55)
This commit is contained in:
165 files changed
+1879
-1725
No files matched your search
@@ -4,4 +4,4 @@
|
||||
|
||||
#notes-app .MuiOutlinedInput-root {
|
||||
border: 2px soild #f9a825;
|
||||
}
|
||||
}
|
||||
@@ -1,20 +1,20 @@
|
||||
import React from 'react'
|
||||
import React from 'react';
|
||||
|
||||
import { yellow } from "@material-ui/core/colors";
|
||||
import { yellow } from '@material-ui/core/colors';
|
||||
|
||||
import useStyles from './notes.styles';
|
||||
|
||||
import { Paper } from "@material-ui/core";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faStickyNote } from "@fortawesome/free-solid-svg-icons";
|
||||
import { Paper } from '@material-ui/core';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faStickyNote } from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
const NotesTitle = () => {
|
||||
const classes = useStyles()
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<Paper elevation={24} square variant="outlined" className={classes.header}>
|
||||
<FontAwesomeIcon icon={faStickyNote} color={yellow[800]} size="lg" />
|
||||
<Paper elevation={24} square variant='outlined' className={classes.header}>
|
||||
<FontAwesomeIcon icon={faStickyNote} color={yellow[800]} size='lg' />
|
||||
</Paper>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default NotesTitle;
|
||||
export default NotesTitle;
|
||||
@@ -3,14 +3,14 @@ import { atom } from 'recoil';
|
||||
export const noteStates = {
|
||||
noteItems: atom({
|
||||
key: 'noteItem',
|
||||
default: []
|
||||
default: [],
|
||||
}),
|
||||
noteModal: atom({
|
||||
key: 'noteModal',
|
||||
default: false
|
||||
default: false,
|
||||
}),
|
||||
noteDetail: atom({
|
||||
key: 'noteDetail',
|
||||
default: null
|
||||
})
|
||||
}
|
||||
default: null,
|
||||
}),
|
||||
};
|
||||
@@ -4,4 +4,4 @@ import { noteStates } from './state';
|
||||
export const useNoteDetail = (): any => {
|
||||
const [detail, setDetail] = useRecoilState(noteStates.noteDetail);
|
||||
return { detail, setDetail };
|
||||
}
|
||||
};
|
||||
@@ -3,5 +3,5 @@ import { noteStates } from './state';
|
||||
|
||||
export const useNoteModal = () => {
|
||||
const [noteModal, setNoteModal] = useRecoilState(noteStates.noteModal);
|
||||
return { noteModal, setNoteModal };
|
||||
}
|
||||
return { noteModal, setNoteModal };
|
||||
};
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import { noteStates } from './state';
|
||||
import { noteStates } from './state';
|
||||
|
||||
export const useNotes = () => {
|
||||
const notes = useRecoilValue(noteStates.noteItems);
|
||||
return notes;
|
||||
}
|
||||
};
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useSetRecoilState } from 'recoil'
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
||||
import { useNotes } from './useNotes';
|
||||
import { noteStates } from './state';
|
||||
@@ -7,4 +7,4 @@ export const useNotesService = () => {
|
||||
const setNotes = useSetRecoilState(noteStates.noteItems);
|
||||
useNuiEvent('NOTES', 'setNotes', setNotes);
|
||||
return useNotes();
|
||||
}
|
||||
};
|
||||
@@ -58,7 +58,7 @@ export const NoteModal = () => {
|
||||
<Slide direction='left' in={noteModal} mountOnEnter unmountOnExit>
|
||||
<div>
|
||||
<Button className={classes.closeButton} onClick={_handleClose}>
|
||||
<ArrowBackIcon fontSize="large" />
|
||||
<ArrowBackIcon fontSize='large' />
|
||||
</Button>
|
||||
<div id='notes-modal' className={classes.noteContainer}>
|
||||
<TextField
|
||||
|
||||
@@ -3,19 +3,19 @@ import { makeStyles } from '@material-ui/core';
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
modalRoot: {
|
||||
zIndex: 20,
|
||||
position: "absolute",
|
||||
position: 'absolute',
|
||||
height: '100%',
|
||||
width: '100%',
|
||||
background: '#232323',
|
||||
},
|
||||
modalHide: {
|
||||
display: 'none'
|
||||
display: 'none',
|
||||
},
|
||||
closeButton: {
|
||||
width: '10%',
|
||||
position: 'absolute',
|
||||
top: 10,
|
||||
left: 0
|
||||
left: 0,
|
||||
},
|
||||
noteContainer: {
|
||||
width: '90%',
|
||||
@@ -33,17 +33,17 @@ const useStyles = makeStyles((theme) => ({
|
||||
},
|
||||
saveButton: {
|
||||
background: '#f9a825',
|
||||
padding: '10px 30px'
|
||||
padding: '10px 30px',
|
||||
},
|
||||
updateButton: {
|
||||
background: '#f9a825',
|
||||
padding: '10px 30px',
|
||||
marginRight: '8px'
|
||||
marginRight: '8px',
|
||||
},
|
||||
deleteButton: {
|
||||
background: '#c62828',
|
||||
padding: '10px 30px'
|
||||
}
|
||||
}))
|
||||
padding: '10px 30px',
|
||||
},
|
||||
}));
|
||||
|
||||
export default useStyles;
|
||||
export default useStyles;
|
||||
@@ -11,9 +11,9 @@ const useStyles = makeStyles((theme) => ({
|
||||
height: '60px',
|
||||
},
|
||||
backgroundModal: {
|
||||
background: "black",
|
||||
opacity: "0.6",
|
||||
position: "absolute",
|
||||
background: 'black',
|
||||
opacity: '0.6',
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
@@ -21,10 +21,10 @@ const useStyles = makeStyles((theme) => ({
|
||||
zIndex: 5,
|
||||
},
|
||||
absolute: {
|
||||
position: "absolute",
|
||||
position: 'absolute',
|
||||
bottom: theme.spacing(2),
|
||||
right: theme.spacing(3),
|
||||
},
|
||||
}))
|
||||
}));
|
||||
|
||||
export default useStyles;
|
||||
export default useStyles;
|
||||
Reference in new issue
Block a user