diff --git a/src/components/composer.js b/src/components/composer.js index 2e5a376..a2c73ef 100644 --- a/src/components/composer.js +++ b/src/components/composer.js @@ -4,26 +4,10 @@ import Modal from './modal' import styles from './composer.module.css' -function FileUploader({ onChange }) { - return ( -
-
Fájl csatolása
- -
- ) -} - export default function Composer({ onSubmit }) { const [editorShowing, setEditorShowing] = useState(false) const [val, setVal] = useState('') - const [type, setType] = useState('public') const [title, setTitle] = useState('') - const [file, setFile] = useState() return ( <> @@ -44,16 +28,14 @@ export default function Composer({ onSubmit }) { }} >
- {type !== 'private' && ( - { - setTitle(e.target.value) - }} - /> - )} + { + setTitle(e.target.value) + }} + />