diff options
author | Michal Sapka <michal@sapka.me> | 2022-09-04 22:34:11 +0200 |
---|---|---|
committer | Michal Sapka <michal@sapka.me> | 2022-09-04 22:34:11 +0200 |
commit | 065ebd57cd9da8e9e6c74152f7ab1200d6a6d013 (patch) | |
tree | 8f2865b46605aacacd5be57093bffc43f36d0afd /pages/index.tsx | |
parent | 6977eb0132a61e3f890ae68ace41b2acff6533e3 (diff) |
feat: add missing types
Diffstat (limited to 'pages/index.tsx')
-rw-r--r-- | pages/index.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index 1212d08b..4477d0b0 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -18,7 +18,12 @@ import { import { AiFillGithub,AiFillMediumCircle} from "react-icons/ai"; import Publications from "../data/publications" -const BioEntry = ({date, description}) => { +type BioEntryType = { + date: string, + description: string +} + +const BioEntry = ({date, description} : BioEntryType) => { return <HStack spacing="6" alignItems="start"> <Box fontWeight='bolder'>{date}</Box> <Box>{description}</Box> |