Skip to content

Commit

Permalink
Move about over to app directory. Not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
oBusk committed Nov 7, 2022
1 parent 16cc977 commit 5b582ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pages/about/api.tsx → src/app/about/api/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client";
import { Code, Heading, Text, VStack } from "@chakra-ui/react";
import { GetStaticProps, NextPage } from "next";
import Layout from "^/components/Layout";
Expand All @@ -21,7 +22,7 @@ type Props = {
specs: [string, string];
};

export const getStaticProps: GetStaticProps<Props> = async ({}) => {
export const getProps: GetStaticProps<Props> = async ({}) => {
const specsOrVersions = splitParts(EXAMPLE_QUERY);
const { canonicalSpecs } = await destination(specsOrVersions);

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/components/About/About.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client";
import {
Code,
Heading,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/NavLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const NavLink: FunctionComponent<LinkProps> = ({
children,
...props
}) => {
const { asPath } = useRouter();
const { asPath } = useRouter() ?? {};
const [isActive, setIsActive] = useState(false);

useEffect(() => {
Expand Down

0 comments on commit 5b582ee

Please sign in to comment.