diff --git a/src/helpers/person.helper.ts b/src/helpers/person.helper.ts index 94206ed..1322531 100644 --- a/src/helpers/person.helper.ts +++ b/src/helpers/person.helper.ts @@ -11,6 +11,7 @@ export const cleanUpPerson = (person: IAPIPerson): IPerson => { return { ...person, thumbnailPath: PERSON_THUBNAIL_PATH(person.id), + birthDate: person.birthDate ? new Date(person.birthDate) : null, updatedAt: new Date(person.updatedAt), } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ffcbdf6..7848235 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,8 +1,5 @@ import { Inter } from "next/font/google"; import PeopleList from "@/components/people/PeopleList"; -import PageLayout from "@/components/layouts/PageLayout"; -import Header from "@/components/shared/Header"; -import { PeoplePagination } from "@/components/people/PeoplePagination"; const inter = Inter({ subsets: ["latin"] });