From d9c1de36a984616a6aa76d2277b8c69393a1d39f Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 11 Dec 2022 22:18:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=201.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NavBar.tsx | 2 +- pages/api/setadmin/make-super-admin.ts | 2 +- pages/mon-compte.tsx | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/NavBar.tsx b/components/NavBar.tsx index 88c3ccd..268a9e5 100644 --- a/components/NavBar.tsx +++ b/components/NavBar.tsx @@ -47,7 +47,7 @@ const NavBar = () => { />
- Accueil

|

+ Accueillllll

|

Tout savoir

|

Contactez-nous

|

{!session && <>Connexion} diff --git a/pages/api/setadmin/make-super-admin.ts b/pages/api/setadmin/make-super-admin.ts index 28812c0..7fdd75d 100644 --- a/pages/api/setadmin/make-super-admin.ts +++ b/pages/api/setadmin/make-super-admin.ts @@ -6,7 +6,7 @@ import prisma from '../../../lib/prisma'; //api qui va rendre un utilisateur super admin (pour les developpeurs) -//--> http://localhost:3000/api/setadmin/make-super-admin?pass=******** (a effacer) +//--> http://localhost:3000/api/setadmin/make-super-admin?pass=DPH58fa2mRvZAFSMN41ptwWn3CThjucEy9BxUJd7KQkzVerYqG (a effacer) export default async function makeMeSuper(req: NextApiRequest, res: NextApiResponse) { const { pass } = req.query; diff --git a/pages/mon-compte.tsx b/pages/mon-compte.tsx index a250931..666cdc0 100644 --- a/pages/mon-compte.tsx +++ b/pages/mon-compte.tsx @@ -148,7 +148,9 @@ const MonCompte = (props: Props) => {
-

Vous avez été séléctionner pour gagner 1 an de thé !

+ {props.user.isBigWinner &&
+

Vous avez été séléctionner pour gagner 1 an de thé !

+
}

Mes informations