All checks were successful
build-and-release / build (push) Successful in 44s
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>
12 lines
293 B
TypeScript
12 lines
293 B
TypeScript
import ProfessionDetailPage from '~/components/admin/ProfessionDetailPage';
|
|
|
|
export default function Page() {
|
|
return (
|
|
<ProfessionDetailPage
|
|
roleLabel="Developer"
|
|
apiSlug="developers"
|
|
backHref="/admin/developers"
|
|
backLabel="Back to Developers List"
|
|
/>
|
|
);
|
|
}
|