⚡️ ⚡️ add - ajout d'une page mon compte connecter a la bdd + API + routes
This commit is contained in:
1 parent
ae437a097b
commit
38159b90c1
12 files changed
+303
-16
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user