feat: add news and dashboard content routes with corresponding layouts
This commit is contained in:
@@ -8,12 +8,12 @@ import type { TTagResponse } from '~/apis/common/get-tags'
|
||||
import { Button } from '~/components/ui/button'
|
||||
import { UiTable } from '~/components/ui/table'
|
||||
import { TitleDashboard } from '~/components/ui/title-dashboard'
|
||||
import type { loader } from '~/routes/_admin.lg-admin._dashboard.contents'
|
||||
import type { loader } from '~/routes/_admin.lg-admin._dashboard.contents._index'
|
||||
import { formatDate } from '~/utils/formatter'
|
||||
|
||||
export const ContentsPage = () => {
|
||||
const loaderData = useRouteLoaderData<typeof loader>(
|
||||
'routes/_admin.lg-admin._dashboard.contents',
|
||||
'routes/_admin.lg-admin._dashboard.contents._index',
|
||||
)
|
||||
const newsData = loaderData?.newsData
|
||||
|
||||
|
||||
Reference in New Issue
Block a user