This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dockerfile | |
.dockerignore | |
node_modules | |
npm-debug.log | |
README.md | |
# .next | |
.git | |
.DS_Store | |
.yarn/* | |
!.yarn/cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable @typescript-eslint/no-non-null-assertion */ | |
import useSWR from "swr"; | |
import { getCookie } from "cookies-next"; | |
import type { User } from "../lib/interfaces"; | |
export default function useUser() { | |
const token = getCookie("token")?.toString(); | |
const { data, error, mutate } = useSWR<{ | |
user: User; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Fragment } from "react"; | |
import { Dialog, Transition } from "@headlessui/react"; | |
const Modal = ({ | |
open, | |
onClose, | |
title, | |
children, | |
}: { | |
open: boolean; |