add freelance page components and localization for English and French
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
'use client';
|
||||
import { getProjectBySlug } from "@/lib/projects/get-projects";
|
||||
import { Project } from "@/lib/projects/types";
|
||||
import FreelanceClient from "./_client";
|
||||
|
||||
export default function FreelancePage() {
|
||||
type props = {
|
||||
params: Promise<{ locale: string }>;
|
||||
};
|
||||
|
||||
export default async function FreelancePage({ params }: props) {
|
||||
const { locale } = await params;
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
const slugOrder = ['MGDev', 'Thence', 'EverEastSolutions'];
|
||||
const projects = slugOrder
|
||||
.map((s) => getProjectBySlug(s, locale))
|
||||
.filter((p): p is Project => p !== null && p.ready);
|
||||
|
||||
return <FreelanceClient projects={projects} locale={locale} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user