diff --git a/app/components/ui/text-editor.tsx b/app/components/ui/text-editor.tsx deleted file mode 100644 index dd5781f..0000000 --- a/app/components/ui/text-editor.tsx +++ /dev/null @@ -1,107 +0,0 @@ -import { useEditor, EditorContent } from '@tiptap/react' -import StarterKit from '@tiptap/starter-kit' - -import { - BoldIcon as Bold, - ItalicIcon as Italic, - UndoIcon as Undo, - RedoIcon as Redo, - ListIcon as List, - ListOrderIcon as ListOrdered, - LinkIcon as Link, - ImageIcon as Image, - CodeIcon as Code, - QuoteIcon as Quote, - StrikethroughIcon as Strikethrough, - UnderlineIcon as Underline, -} from '~/components/icons/editor' - -const DefaultTextEditor = () => { - const editor = useEditor({ - extensions: [StarterKit], - immediatelyRender: false, - content: - '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quis lobortis nisl cursus bibendum sit nulla accumsan sodales ornare. At urna viverra non suspendisse neque, lorem. Pretium condimentum pellentesque gravida id etiam sit sed arcu euismod. Rhoncus proin orci duis scelerisque molestie cursus tincidunt aliquam.

', - }) - - if (!editor) { - return

Loading editor...

- } - - return ( -
-
-
- - - - - - - - - - - - -
-
-
- -
-
- ) -} - -export default DefaultTextEditor diff --git a/app/pages/contents-update/index.tsx b/app/pages/contents-update/index.tsx deleted file mode 100644 index 8094ea2..0000000 --- a/app/pages/contents-update/index.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import { Field, Input, Label, Select } from '@headlessui/react' - -import { SearchIcon } from '~/components/icons/search' -import DefaultTextEditor from '~/components/ui/text-editor' -import { TitleDashboard } from '~/components/ui/title-dashboard' - -export const UpdateContentsPage = () => { - return ( -
- -
-
- - -
- -
- -
-
-
-
- -
- - - - -
-
- -
- -
-
- ) -} diff --git a/app/routes/_admin.lg-admin._dashboard.contents.update.$slug.tsx b/app/routes/_admin.lg-admin._dashboard.contents.update.$slug.tsx index babc407..9ef9064 100644 --- a/app/routes/_admin.lg-admin._dashboard.contents.update.$slug.tsx +++ b/app/routes/_admin.lg-admin._dashboard.contents.update.$slug.tsx @@ -1,4 +1,4 @@ -import { UpdateContentsPage } from '~/pages/contents-update' +import { ContentsFormPage } from '~/pages/contents-form' -const DashboardContentUpdateLayout = () => +const DashboardContentUpdateLayout = () => export default DashboardContentUpdateLayout