🚀 1.3
This commit is contained in:
1 parent
ab65fae880
commit
9f890c8da2
3 files changed
+13
-5
No files matched your search
+13
-3
@@ -2,6 +2,7 @@ import React, { useState } from "react";
|
||||
import prisma from '../lib/prisma'
|
||||
import * as Yup from 'yup';
|
||||
import Head from "next/head";
|
||||
import Image from 'next/image';
|
||||
import { getSession, useSession } from "next-auth/react";
|
||||
import { yupResolver } from "@hookform/resolvers/yup";
|
||||
import "yup-phone";
|
||||
@@ -11,6 +12,7 @@ import { TfiInfoAlt } from 'react-icons/tfi'
|
||||
import { TfiGift } from 'react-icons/tfi'
|
||||
import { toast } from "react-toastify";
|
||||
import { Gain, User } from "@prisma/client";
|
||||
import unandethe from '../public/images/unandethe.webp'
|
||||
|
||||
type FormData = {
|
||||
email: string;
|
||||
@@ -148,9 +150,17 @@ const MonCompte = (props: Props) => {
|
||||
<div className="container align-items-center d-flex flex-column">
|
||||
<div className={`${style['bloc-content']} col-12 col-md-12`}>
|
||||
<div className="row">
|
||||
{props.user.isBigWinner && <div>
|
||||
<p>Vous avez été séléctionner pour gagner 1 an de thé !</p>
|
||||
</div>}
|
||||
{props.user.isBigWinner &&
|
||||
<div>
|
||||
<h3>!!! Vous avez été séléctionné pour gagner 1 an de thé !!!</h3>
|
||||
<Image
|
||||
src={unandethe}
|
||||
alt="logo un an cadeau"
|
||||
width={190}
|
||||
height={180 - 40}
|
||||
className={`${style['rotatingSlow']}`} />
|
||||
|
||||
</div>}
|
||||
<div className="col-md-6 col-sm-12">
|
||||
<hr />
|
||||
<h1 className="fw-light">Mes informations <TfiInfoAlt size={40} /></h1>
|
||||
|
||||
Reference in new issue
Block a user