|
|
|
@ -2,6 +2,7 @@ import React, { useState } from "react";
|
|
|
|
import prisma from '../lib/prisma'
|
|
|
|
import prisma from '../lib/prisma'
|
|
|
|
import * as Yup from 'yup';
|
|
|
|
import * as Yup from 'yup';
|
|
|
|
import Head from "next/head";
|
|
|
|
import Head from "next/head";
|
|
|
|
|
|
|
|
import Image from 'next/image';
|
|
|
|
import { getSession, useSession } from "next-auth/react";
|
|
|
|
import { getSession, useSession } from "next-auth/react";
|
|
|
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
|
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
|
|
import "yup-phone";
|
|
|
|
import "yup-phone";
|
|
|
|
@ -11,6 +12,7 @@ import { TfiInfoAlt } from 'react-icons/tfi'
|
|
|
|
import { TfiGift } from 'react-icons/tfi'
|
|
|
|
import { TfiGift } from 'react-icons/tfi'
|
|
|
|
import { toast } from "react-toastify";
|
|
|
|
import { toast } from "react-toastify";
|
|
|
|
import { Gain, User } from "@prisma/client";
|
|
|
|
import { Gain, User } from "@prisma/client";
|
|
|
|
|
|
|
|
import unandethe from '../public/images/unandethe.webp'
|
|
|
|
|
|
|
|
|
|
|
|
type FormData = {
|
|
|
|
type FormData = {
|
|
|
|
email: string;
|
|
|
|
email: string;
|
|
|
|
@ -148,9 +150,17 @@ const MonCompte = (props: Props) => {
|
|
|
|
<div className="container align-items-center d-flex flex-column">
|
|
|
|
<div className="container align-items-center d-flex flex-column">
|
|
|
|
<div className={`${style['bloc-content']} col-12 col-md-12`}>
|
|
|
|
<div className={`${style['bloc-content']} col-12 col-md-12`}>
|
|
|
|
<div className="row">
|
|
|
|
<div className="row">
|
|
|
|
{props.user.isBigWinner && <div>
|
|
|
|
{props.user.isBigWinner &&
|
|
|
|
<p>Vous avez été séléctionner pour gagner 1 an de thé !</p>
|
|
|
|
<div>
|
|
|
|
</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">
|
|
|
|
<div className="col-md-6 col-sm-12">
|
|
|
|
<hr />
|
|
|
|
<hr />
|
|
|
|
<h1 className="fw-light">Mes informations <TfiInfoAlt size={40} /></h1>
|
|
|
|
<h1 className="fw-light">Mes informations <TfiInfoAlt size={40} /></h1>
|
|
|
|
|