From a67d6665ea7c7c90c67128b4208a0bb2cf4c148a Mon Sep 17 00:00:00 2001 From: Divlo Date: Thu, 24 Mar 2022 11:45:19 +0100 Subject: [PATCH] feat: display age nearby the birth date --- components/Profile/ProfileList/index.tsx | 20 +- components/Profile/index.tsx | 10 +- jsonresume-theme-custom/package-lock.json | 3034 +++++-------- jsonresume-theme-custom/package.json | 10 +- locales/en/home.json | 1 + locales/fr/home.json | 1 + package-lock.json | 4993 +++++++++------------ package.json | 38 +- pages/404.tsx | 4 +- pages/500.tsx | 4 +- pages/index.tsx | 13 +- utils/getAge.ts | 7 +- utils/getDefaultDescription.ts | 5 +- 13 files changed, 3273 insertions(+), 4867 deletions(-) diff --git a/components/Profile/ProfileList/index.tsx b/components/Profile/ProfileList/index.tsx index 2486131..82fa3f0 100644 --- a/components/Profile/ProfileList/index.tsx +++ b/components/Profile/ProfileList/index.tsx @@ -1,14 +1,30 @@ import useTranslation from 'next-translate/useTranslation' +import { + DIVLO_BIRTHDAY_DAY, + DIVLO_BIRTHDAY_MONTH, + DIVLO_BIRTHDAY_YEAR +} from 'utils/getAge' + import { ProfileItem } from './ProfileItem' -export const ProfileList: React.FC = () => { +export interface ProfileListProps { + age: number +} + +export const ProfileList: React.FC = (props) => { + const { age } = props const { t } = useTranslation('home') return (