mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
del(notes/nui): removed old modal
This commit is contained in:
1 parent
2e2ef27f6c
commit
92494fa541
1 file changed
-57
@@ -1,57 +0,0 @@
|
||||
import { Button, List, ListItem, TextField } from '@material-ui/core';
|
||||
import React, { useState } from 'react'
|
||||
import Modal from '../../../ui/components/Modal';
|
||||
import ClearIcon from "@material-ui/icons/Clear";
|
||||
|
||||
import { useNoteModal } from '../hooks/useNoteModal';
|
||||
import useStyles from './modal.styles';
|
||||
|
||||
import '../NotesApp.css'
|
||||
|
||||
export const AddNoteModal = () => {
|
||||
const [title, setTitle] = useState('');
|
||||
const [content, setContent] = useState('');
|
||||
|
||||
const classes = useStyles();
|
||||
|
||||
const {noteModal, setNoteModal} = useNoteModal();
|
||||
|
||||
const _handleClose = () => {
|
||||
setNoteModal(false);
|
||||
}
|
||||
|
||||
return (
|
||||
<Modal visible={noteModal} handleClose={_handleClose}>
|
||||
<Button onClick={_handleClose} className={classes.closeButton}><ClearIcon /></Button>
|
||||
<List style={{ marginTop: 20 }}>
|
||||
<ListItem>
|
||||
<TextField
|
||||
fullWidth
|
||||
className={classes.input}
|
||||
placeholder="Title"
|
||||
inputProps={{
|
||||
className: classes.inputStyles
|
||||
}}
|
||||
value={title}
|
||||
variant="standard"
|
||||
onChange={e => setTitle(e.target.value)}
|
||||
/>
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<TextField
|
||||
fullWidth
|
||||
className={classes.input}
|
||||
placeholder="Some shit"
|
||||
value={content}
|
||||
onChange={e => setContent(e.target.value)}
|
||||
variant="outlined"
|
||||
multiline
|
||||
inputProps={{
|
||||
className: classes.inputStyles
|
||||
}}
|
||||
/>
|
||||
</ListItem>
|
||||
</List>
|
||||
</Modal>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user