mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
more formatting
This commit is contained in:
1 parent
046447b0fb
commit
f552c1212c
157 files changed
+635
-1579
No files matched your search
@@ -52,7 +52,7 @@ export const NoteModal = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<Slide direction='left' in={!!detail}>
|
||||
<Slide direction="left" in={!!detail}>
|
||||
<Paper className={classes.modalRoot}>
|
||||
{!detail ? (
|
||||
<CircularProgress />
|
||||
@@ -61,9 +61,9 @@ export const NoteModal = () => {
|
||||
<Box>
|
||||
<Box py={2}>
|
||||
<Button
|
||||
color='primary'
|
||||
size='large'
|
||||
startIcon={<ArrowBackIcon fontSize='large' />}
|
||||
color="primary"
|
||||
size="large"
|
||||
startIcon={<ArrowBackIcon fontSize="large" />}
|
||||
onClick={_handleClose}
|
||||
>
|
||||
{t('APPS_NOTES')}
|
||||
@@ -79,9 +79,7 @@ export const NoteModal = () => {
|
||||
}}
|
||||
fullWidth
|
||||
value={detail.title}
|
||||
onChange={(e) =>
|
||||
setDetail((d) => ({ ...d, title: e.target.value }))
|
||||
}
|
||||
onChange={(e) => setDetail((d) => ({ ...d, title: e.target.value }))}
|
||||
/>
|
||||
<TextField
|
||||
className={classes.input}
|
||||
@@ -93,29 +91,27 @@ export const NoteModal = () => {
|
||||
multiline
|
||||
fullWidth
|
||||
rows={16}
|
||||
variant='outlined'
|
||||
variant="outlined"
|
||||
value={detail.content}
|
||||
onChange={(e) =>
|
||||
setDetail((d) => ({ ...d, content: e.target.value }))
|
||||
}
|
||||
onChange={(e) => setDetail((d) => ({ ...d, content: e.target.value }))}
|
||||
/>
|
||||
<Typography paragraph>{detail.content.length}/250</Typography>
|
||||
{!detail.id ? (
|
||||
<>
|
||||
<Box display='inline' p={1}>
|
||||
<Box display="inline" p={1}>
|
||||
<Button
|
||||
color='primary'
|
||||
variant='contained'
|
||||
color="primary"
|
||||
variant="contained"
|
||||
disabled={detail.title.length > 0 ? false : true}
|
||||
onClick={handleNoteSave}
|
||||
>
|
||||
{t('GENERIC_SAVE')}
|
||||
</Button>
|
||||
</Box>
|
||||
<Box display='inline' p={1}>
|
||||
<Box display="inline" p={1}>
|
||||
<StatusButton
|
||||
color='error'
|
||||
variant='contained'
|
||||
color="error"
|
||||
variant="contained"
|
||||
onClick={_handleClose}
|
||||
>
|
||||
{t('GENERIC_CANCEL')}
|
||||
@@ -124,19 +120,19 @@ export const NoteModal = () => {
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Box display='inline' p={1}>
|
||||
<Box display="inline" p={1}>
|
||||
<Button
|
||||
color='primary'
|
||||
variant='contained'
|
||||
color="primary"
|
||||
variant="contained"
|
||||
onClick={handleUpdateNote}
|
||||
>
|
||||
{t('GENERIC_UPDATE')}
|
||||
</Button>
|
||||
</Box>
|
||||
<Box display='inline' p={1}>
|
||||
<Box display="inline" p={1}>
|
||||
<StatusButton
|
||||
color='error'
|
||||
variant='contained'
|
||||
color="error"
|
||||
variant="contained"
|
||||
onClick={handleDeleteNote}
|
||||
>
|
||||
{t('GENERIC_DELETE')}
|
||||
|
||||
Reference in new issue
Block a user