feat(inquiries): top-level Inquiries page (list + detail + convert), nav entries; retire admin inbox
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
import { InquiryInbox } from '@/components/admin/inquiry-inbox';
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
export default function InquiriesPage() {
|
||||
return <InquiryInbox />;
|
||||
/**
|
||||
* The inquiry inbox is now a top-level, permission-gated page at
|
||||
* `/[portSlug]/inquiries` (resource `inquiries`), no longer admin-only.
|
||||
* Redirect the legacy admin URL so old bookmarks/links still land.
|
||||
*/
|
||||
interface AdminInquiriesRedirectProps {
|
||||
params: Promise<{ portSlug: string }>;
|
||||
}
|
||||
|
||||
export default async function AdminInquiriesRedirect({ params }: AdminInquiriesRedirectProps) {
|
||||
const { portSlug } = await params;
|
||||
redirect(`/${portSlug}/inquiries`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user