mad formatting

This commit is contained in:
Christopher committed 2021-03-02 20:41:25 +01:00
1 parent 6777498bcc
commit 046447b0fb
74 files changed
+329 -309

No files matched your search

+1 -1
View File
@@ -12,5 +12,5 @@ export const noteStates = {
noteDetail: atom({
key: 'noteDetail',
default: null,
})
}),
};
+2 -2
View File
@@ -1,6 +1,6 @@
import { useRecoilValue } from 'recoil';
import { Note } from '../../../common/typings/notes';
import { noteStates } from './state';
import { noteStates } from './state';
interface NotesProps {
notes: Note[];
@@ -9,4 +9,4 @@ interface NotesProps {
export const useNotes = (): NotesProps => {
const notes = useRecoilValue(noteStates.noteItems);
return { notes };
}
};
+4 -4
View File
@@ -102,7 +102,7 @@ export const NoteModal = () => {
<Typography paragraph>{detail.content.length}/250</Typography>
{!detail.id ? (
<>
<Box display="inline" p={1}>
<Box display='inline' p={1}>
<Button
color='primary'
variant='contained'
@@ -112,7 +112,7 @@ export const NoteModal = () => {
{t('GENERIC_SAVE')}
</Button>
</Box>
<Box display="inline" p={1}>
<Box display='inline' p={1}>
<StatusButton
color='error'
variant='contained'
@@ -124,7 +124,7 @@ export const NoteModal = () => {
</>
) : (
<>
<Box display="inline" p={1}>
<Box display='inline' p={1}>
<Button
color='primary'
variant='contained'
@@ -133,7 +133,7 @@ export const NoteModal = () => {
{t('GENERIC_UPDATE')}
</Button>
</Box>
<Box display="inline" p={1}>
<Box display='inline' p={1}>
<StatusButton
color='error'
variant='contained'
+5 -5
View File
@@ -1,4 +1,4 @@
import { common, yellow } from "@material-ui/core/colors";
import { common, yellow } from '@material-ui/core/colors';
export const NOTES_APP_PRIMARY_COLOR = yellow[800];
export const NOTES_APP_ICON_COLOR = common.white;
@@ -10,9 +10,9 @@ const theme = {
main: NOTES_APP_PRIMARY_COLOR,
dark: yellow[900],
light: yellow[500],
contrastText: NOTES_APP_TEXT_COLOR
}
}
}
contrastText: NOTES_APP_TEXT_COLOR,
},
},
};
export default theme;
@@ -1,4 +1,4 @@
import { createAppThemeProvider } from "../../../os/apps/utils/createAppThemeProvider";
import { createAppThemeProvider } from '../../../os/apps/utils/createAppThemeProvider';
import notesTheme from '../notes.theme';
export const NotesThemeProvider = createAppThemeProvider(notesTheme);