feat: refactor import paths for content and category schemas to improve clarity and organization
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { CreateCategoryPage } from '~/pages/dashboard-category-create'
|
||||
import { FormCategoryPage } from '~/pages/form-category'
|
||||
|
||||
const DashboardCategoriesCreateLayout = () => <CreateCategoryPage />
|
||||
const DashboardCategoriesCreateLayout = () => <FormCategoryPage />
|
||||
export default DashboardCategoriesCreateLayout
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ContentsFormPage } from '~/pages/contents-form'
|
||||
import { FormContentsPage } from '~/pages/form-contents'
|
||||
|
||||
const DashboardContentCreateLayout = () => <ContentsFormPage />
|
||||
const DashboardContentCreateLayout = () => <FormContentsPage />
|
||||
export default DashboardContentCreateLayout
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { getNewsBySlug } from '~/apis/common/get-news-by-slug'
|
||||
import { handleCookie } from '~/libs/cookies'
|
||||
import { ContentsFormPage } from '~/pages/contents-form'
|
||||
import { FormContentsPage } from '~/pages/form-contents'
|
||||
|
||||
import type { Route } from './+types/_admin.lg-admin._dashboard.contents.update.$slug'
|
||||
|
||||
@@ -15,6 +15,6 @@ export const loader = async ({ request }: Route.LoaderArgs) => {
|
||||
|
||||
const DashboardContentUpdateLayout = ({ loaderData }: Route.ComponentProps) => {
|
||||
const newsData = loaderData.newsData
|
||||
return <ContentsFormPage newsData={newsData} />
|
||||
return <FormContentsPage newsData={newsData} />
|
||||
}
|
||||
export default DashboardContentUpdateLayout
|
||||
|
||||
@@ -8,7 +8,7 @@ import { handleCookie } from '~/libs/cookies'
|
||||
import {
|
||||
createCategorySchema,
|
||||
type TCategorySchema,
|
||||
} from '~/pages/dashboard-category-create'
|
||||
} from '~/pages/form-category'
|
||||
|
||||
import type { Route } from './+types/actions.register'
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { XiorError } from 'xior'
|
||||
|
||||
import { createNewsRequest } from '~/apis/admin/create-news'
|
||||
import { handleCookie } from '~/libs/cookies'
|
||||
import { contentSchema, type TContentSchema } from '~/pages/contents-form'
|
||||
import { contentSchema, type TContentSchema } from '~/pages/form-contents'
|
||||
|
||||
import type { Route } from './+types/actions.register'
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { XiorError } from 'xior'
|
||||
|
||||
import { updateNewsRequest } from '~/apis/admin/update-news'
|
||||
import { handleCookie } from '~/libs/cookies'
|
||||
import { contentSchema, type TContentSchema } from '~/pages/contents-form'
|
||||
import { contentSchema, type TContentSchema } from '~/pages/form-contents'
|
||||
|
||||
import type { Route } from './+types/actions.register'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user