⚡️ ⚡️ add - ajout d'une page mon compte connecter a la bdd + API + routes

This commit is contained in:
eric committed 2022-11-10 15:40:00 +01:00
1 parent ae437a097b
commit 38159b90c1
12 files changed
+303 -16

No files matched your search

+6 -1
View File
@@ -8,7 +8,7 @@ const Header = () => {
const isActive: (pathname: string) => boolean = (pathname) =>
router.pathname === pathname;
const {data: session, status} = useSession();
const { data: session, status } = useSession();
let left = (
<div className="left">
@@ -124,6 +124,11 @@ const Header = () => {
<Link href="/drafts" legacyBehavior>
<a data-active={isActive("/drafts")}>My drafts</a>
</Link>
<Link href="/profile" legacyBehavior>
<a data-active={isActive("/profile")}>
Mon Compte
</a>
</Link>
<style jsx>{`
.bold {
font-weight: bold;