diff --git a/src/features/editor/index.tsx b/src/features/editor/index.tsx
deleted file mode 100644
index 9f6353fe..00000000
--- a/src/features/editor/index.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import TitleInput from './components/title-input'
-import { EditDocumentProvider } from './context/edit-document-context'
-import dynamic from 'next/dynamic'
-import Icon from '@/shared/components/custom/icon'
-import Text from '@/shared/components/ui/text'
-import Loading from '@/shared/components/custom/loading'
-import FixedBottom from '@/shared/components/custom/fixed-bottom'
-import NewQuizDrawer from '../quiz/components/new-quiz-drawer'
-import { Button } from '@/shared/components/ui/button'
-
-// Remirror가 브라우저 전용 라이브러리라 서버에서 렌더링될 때 오류 발생, 이를 해결하기 위해 dynamic import를 사용
-const VisualEditor = dynamic(() => import('./components/visual-editor'), {
- ssr: false,
- loading: () =>
,
-})
-
-const CreateWithEditor = () => {
- return (
- <>
- {/*
*/}
-
-
-
-
-
-
-
-
-
- 최소 500자, 최대 15000자 입력 가능
-
-
-
- {0} / 15000
-
-
-
-
-
-
-
- 퀴즈 만들기
-
- }
- />
-
-
-
- >
- )
-}
-
-export default CreateWithEditor
diff --git a/src/features/document/components/edit-cancel-dialog.tsx b/src/features/modify/components/edit-cancel-dialog.tsx
similarity index 100%
rename from src/features/document/components/edit-cancel-dialog.tsx
rename to src/features/modify/components/edit-cancel-dialog.tsx
diff --git a/src/features/editor/components/title-input.tsx b/src/features/modify/components/title-input.tsx
similarity index 100%
rename from src/features/editor/components/title-input.tsx
rename to src/features/modify/components/title-input.tsx
diff --git a/src/features/editor/components/visual-editor.tsx b/src/features/modify/components/visual-editor.tsx
similarity index 100%
rename from src/features/editor/components/visual-editor.tsx
rename to src/features/modify/components/visual-editor.tsx
diff --git a/src/features/editor/context/edit-document-context.tsx b/src/features/modify/context/edit-document-context.tsx
similarity index 100%
rename from src/features/editor/context/edit-document-context.tsx
rename to src/features/modify/context/edit-document-context.tsx
diff --git a/src/features/editor/libs/extensions.ts b/src/features/modify/libs/extensions.ts
similarity index 100%
rename from src/features/editor/libs/extensions.ts
rename to src/features/modify/libs/extensions.ts
diff --git a/src/features/editor/styles/remirror-custom.css b/src/features/modify/styles/remirror-custom.css
similarity index 100%
rename from src/features/editor/styles/remirror-custom.css
rename to src/features/modify/styles/remirror-custom.css
diff --git a/src/features/pages/documents-in-directory.tsx b/src/features/pages/documents-in-directory.tsx
index cd1fdb11..171d89da 100644
--- a/src/features/pages/documents-in-directory.tsx
+++ b/src/features/pages/documents-in-directory.tsx
@@ -7,11 +7,29 @@ import AddDocumentMenu from '../document/components/add-document-menu'
import Image from 'next/image'
import Text from '@/shared/components/ui/text'
import note_img from '@/../../public/assets/note.png'
-import { useGetDocuments } from '@/requests/document/hooks'
import Loading from '@/shared/components/custom/loading'
+import { useDirectoryContext } from '../directory/contexts/directory-context'
+import { useQuery } from '@tanstack/react-query'
+import { queries } from '@/shared/lib/tanstack-query/query-keys'
+import { useDocumentContext } from '../document/contexts/document-context'
+import { useEffect } from 'react'
const DocumentsInDirectory = () => {
- const { data, isPending } = useGetDocuments()
+ const { selectedDirectoryId } = useDirectoryContext()
+ const { checkDoc } = useDocumentContext()
+
+ const params =
+ selectedDirectoryId !== null ? { directoryId: String(selectedDirectoryId) } : undefined
+ const { data, isPending } = useQuery(queries.document.list(params))
+
+ useEffect(() => {
+ if (data) {
+ const documentCheckList =
+ data.documents.map((document) => ({ id: document.id, checked: false })) ?? []
+
+ checkDoc.set(documentCheckList)
+ }
+ }, [data])
if (isPending) {
return
@@ -33,8 +51,6 @@ const DocumentsInDirectory = () => {