summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorMichal Sapka <michal@sapka.me>2022-09-04 22:34:11 +0200
committerMichal Sapka <michal@sapka.me>2022-09-04 22:34:11 +0200
commit065ebd57cd9da8e9e6c74152f7ab1200d6a6d013 (patch)
tree8f2865b46605aacacd5be57093bffc43f36d0afd /pages
parent6977eb0132a61e3f890ae68ace41b2acff6533e3 (diff)
feat: add missing types
Diffstat (limited to 'pages')
-rw-r--r--pages/_app.tsx2
-rw-r--r--pages/index.tsx7
2 files changed, 7 insertions, 2 deletions
diff --git a/pages/_app.tsx b/pages/_app.tsx
index 1c061498..da7cb05a 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -1,5 +1,5 @@
import { ChakraProvider } from '@chakra-ui/react'
-import theme from '../lib/theme.tsx'
+import theme from '../lib/theme'
import type { AppProps } from 'next/app'
import '@fontsource/lato/400.css'
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>