diff --git a/pages/writing.tsx b/pages/writing.tsx index b48c353..7e67fca 100644 --- a/pages/writing.tsx +++ b/pages/writing.tsx @@ -24,23 +24,10 @@ const initialWriting: WritingContentsType = { }; const Writing: NextPage = function () { - const folderList = [ - { value: 0, folder: '내 생각' }, - { value: 1, folder: 'option 1' }, - { value: 2, folder: 'option 2' }, - { value: 3, folder: 'option 3' }, - ]; - const imageList = [0, 1, 2, 3]; - const [data, setData] = useState(initialWriting); const mutation = usePostContents(data); - const onFolderChange = (e: React.ChangeEvent) => { - const { value } = e.target; - setData((prev) => ({ ...prev, folder: parseInt(value) })); - }; - const onTitleChange = (e: React.ChangeEvent) => { const { value } = e.target; setData({ ...data, title: value }); @@ -69,18 +56,6 @@ const Writing: NextPage = function () { - - {'폴더'} - - - - {'제목'} @@ -91,12 +66,6 @@ const Writing: NextPage = function () { /> - - {'내용'} - - - - {'글 소개'} @@ -115,51 +84,15 @@ const Writing: NextPage = function () { /> + + {'내용'} + + + + -
- - - - - - - - - - - - - - - - - - - - - -
- - - {imageList.map((item) => ( - - - - ))} - - -