File tree Expand file tree Collapse file tree
app/(main)/(auth)/positions/[id]/apply Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,22 +14,20 @@ import { PageHeader } from '@/components/layouts/page-header';
1414import { Button } from '@/components/ui/button' ;
1515import { Card , CardContent } from '@/components/ui/card' ;
1616
17+ interface ApplyPageProps {
18+ params : Promise < { id : string } > ;
19+ }
20+
1721export 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' ) ;
You can’t perform that action at this time.
0 commit comments