summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/layout.tsx8
-rw-r--r--components/topnav.tsx7
2 files changed, 13 insertions, 2 deletions
diff --git a/components/layout.tsx b/components/layout.tsx
index b3506ea2..f137cb4b 100644
--- a/components/layout.tsx
+++ b/components/layout.tsx
@@ -1,6 +1,12 @@
import TopNav from '../components/topnav'
import { Container, Box } from '@chakra-ui/react'
-export default function Layout({ children }) {
+import ReactNode from 'react'
+
+type Props = {
+ children?: any
+}
+
+export default function Layout({ children } : Props) {
return (
<>
<TopNav/>
diff --git a/components/topnav.tsx b/components/topnav.tsx
index 3e729bab..a46f38fb 100644
--- a/components/topnav.tsx
+++ b/components/topnav.tsx
@@ -19,7 +19,12 @@ import {
import { GiHamburgerMenu } from "react-icons/gi"
import { DiGithubBadge } from "react-icons/di"
-function NavLink({to, children}) {
+type NavLinkType = {
+ to: string,
+ children: any,
+}
+
+function NavLink({to, children} : NavLinkType) {
return <a href={to} className={`mx-4`}>
{children}
</a>