nxtgauge-admin-solid/src/routes/admin/makeup-artist/index.tsx
Ashwin Kumar Sivakumar 0866b7a069
All checks were successful
build-and-release / build (push) Successful in 44s
fix(admin): add missing detail pages for 8 profession admin lists
Each of these profession admin list pages (makeup artist, tutor, developer,
video editor, graphic designer, social media manager, fitness trainer,
catering services) linked "View Profile" to /admin/{role}/{id}, but only
Photographer and Company had a real [id].tsx route — every other role fell
through to the legacy catch-all module and showed a placeholder instead of
the applicant's actual profile. Converts each flat list route into a
folder (index.tsx + [id].tsx) and adds a shared ProfessionDetailPage
component, modeled on the working Photographer detail page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-14 21:24:02 +05:30

13 lines
418 B
TypeScript

import ProfessionAdminListPage from '~/components/admin/ProfessionAdminListPage';
export default function Page() {
return (
<ProfessionAdminListPage
endpoint="/api/admin/makeup-artists"
title="Makeup Artist Management"
subtitle="Manage all makeup artist accounts on the platform."
emptyLabel="No makeup artists found."
viewHref={(id) => `/admin/makeup-artist/${id}`}
/>
);
}