feat: add tags management page and update admin menu

This commit is contained in:
fredy.siswanto
2025-03-07 14:56:00 +07:00
parent c46e8fc11b
commit c91fe48eb9
3 changed files with 108 additions and 1 deletions
@@ -0,0 +1,15 @@
import { getTags } from '~/apis/common/get-tags'
import { handleCookie } from '~/libs/cookies'
import { TagsPage } from '~/pages/dashboard-tags'
import type { Route } from './+types/_admin.lg-admin._dashboard.tags._index'
export const loader = async ({ request }: Route.LoaderArgs) => {
const { staffToken } = await handleCookie(request)
const { data: tagsData } = await getTags({
accessToken: staffToken,
})
return { tagsData }
}
const DashboardTagsIndexLayout = () => <TagsPage />
export default DashboardTagsIndexLayout