Added dynamic calender route.

This commit is contained in:
Lucid Kobold
2021-12-05 16:47:26 -06:00
parent 8629fd576d
commit 2ca6bab953
2 changed files with 101 additions and 0 deletions

23
pages/calendar/index.tsx Normal file
View File

@@ -0,0 +1,23 @@
import React, { useEffect } from "react";
import { useRouter } from "next/router";
import { Box, Heading } from "@chakra-ui/react";
const DateRoute = () => {
const router = useRouter();
useEffect(() => {
if (router) {
router.push("calendar/now");
}
}, [router]);
return (
<Box textAlign="center" w="100%" h="auto" pt="50px" pb="10vh">
<Heading as="h2" size="xl">
Loading
</Heading>
</Box>
);
};
export default DateRoute;