mirror of
https://github.com/kevin-DL/commander_league_web.git
synced 2026-01-22 22:35:21 +00:00
Basic Profile page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import useSWR from "swr";
|
||||
// import useSWR from "swr";
|
||||
import Link from "next/link";
|
||||
import { useUser } from "../utils/auth/useUser";
|
||||
// import { useUser } from "../utils/auth/useUser";
|
||||
import DefaultLayout from "../components/defaultLayout";
|
||||
import styles from "./index.module.css";
|
||||
import { Box, Button, Container, Typography } from "@material-ui/core";
|
||||
@@ -13,11 +13,11 @@ const fetcher = (url, token) =>
|
||||
}).then((res) => res.json());
|
||||
|
||||
const Index = () => {
|
||||
const { user, logout } = useUser();
|
||||
const { data, error } = useSWR(
|
||||
user ? ["/api/getFood", user.token] : null,
|
||||
fetcher
|
||||
);
|
||||
// const { user, logout } = useUser();
|
||||
// const { data, error } = useSWR(
|
||||
// user ? ["/api/getFood", user.token] : null,
|
||||
// fetcher
|
||||
// );
|
||||
|
||||
return (
|
||||
<DefaultLayout>
|
||||
@@ -29,7 +29,11 @@ const Index = () => {
|
||||
justifyContent="center"
|
||||
alignItems="center"
|
||||
>
|
||||
<Typography variant="h1">Start creating your leagues</Typography>
|
||||
<Typography variant="h1">
|
||||
{" "}
|
||||
Coming Soon. Developoment in progress{" "}
|
||||
</Typography>
|
||||
<Typography variant="h5">Start creating your leagues</Typography>
|
||||
<Link href="/auth">
|
||||
<Button
|
||||
color="primary"
|
||||
|
||||
Reference in New Issue
Block a user