Skip to content

Commit cee54c9

Browse files
b-at-neuclaude
andcommitted
#282 address review feedback
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c09cdde commit cee54c9

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

  • app/(main)/(auth)/positions/[id]/apply

app/(main)/(auth)/positions/[id]/apply/page.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,20 @@ import { PageHeader } from '@/components/layouts/page-header';
1414
import { Button } from '@/components/ui/button';
1515
import { Card, CardContent } from '@/components/ui/card';
1616

17+
interface ApplyPageProps {
18+
params: Promise<{ id: string }>;
19+
}
20+
1721
export async function generateMetadata({
1822
params,
19-
}: {
20-
params: Promise<{ id: string }>;
21-
}): Promise<Metadata> {
23+
}: ApplyPageProps): Promise<Metadata> {
2224
const { id } = await params;
2325
const position = await getPositionForApply(id);
2426
if (!position) return {};
2527
return { title: `Apply: ${position.title}` };
2628
}
2729

28-
export default async function ApplyPage({
29-
params,
30-
}: {
31-
params: Promise<{ id: string }>;
32-
}) {
30+
export default async function ApplyPage({ params }: ApplyPageProps) {
3331
const { id } = await params;
3432
const user = await getCurrentUser();
3533
if (!user) redirect('/sign-in');

0 commit comments

Comments
 (0)