From 4a7c48242a2564fa7ab82b6d212d9fcb10dc1e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o?= <43091603+glazk0@users.noreply.github.com> Date: Fri, 3 Mar 2023 09:56:04 +0100 Subject: [PATCH] refactored auth & sign-in --- app/(auth)/sign-in/page.tsx | 77 +------------- app/(auth)/sign-up/page.tsx | 125 +--------------------- app/(legal)/privacy-policy/page.tsx | 12 +++ app/dashboard/puzzles/[id]/page.tsx | 5 +- package.json | 4 +- pnpm-lock.yaml | 106 +++++++++---------- ui/Puzzle.tsx | 52 ++++++++-- ui/UserAuthForm.tsx | 155 ++++++++++------------------ 8 files changed, 168 insertions(+), 368 deletions(-) create mode 100644 app/(legal)/privacy-policy/page.tsx diff --git a/app/(auth)/sign-in/page.tsx b/app/(auth)/sign-in/page.tsx index aa16143..b00d5c5 100644 --- a/app/(auth)/sign-in/page.tsx +++ b/app/(auth)/sign-in/page.tsx @@ -1,84 +1,11 @@ -'use client'; - -import AppLink from '@/ui/AppLink'; -import Button from '@/ui/Button'; -import Input from '@/ui/Input'; -import cookies from 'js-cookie'; -import { useRouter } from 'next/navigation'; -import { useForm } from 'react-hook-form'; - -type LoginData = { - pseudo: string; - passwd: string; -}; +import UserAuthForm from '@/ui/UserAuthForm'; export default function Page() { - const { - register, - handleSubmit, - formState: { errors }, - setError - } = useForm({ - defaultValues: { - pseudo: '', - passwd: '' - } - }); - - const router = useRouter(); - - async function onSubmit(data: LoginData) { - const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/login`, { - method: 'POST', - body: JSON.stringify(data) - }); - - if (res.ok) { - const token = res.headers.get('Authorization')?.split(' ')[1]; - if (token) cookies.set('token', token); - if (cookies.get('token')) router.push('/dashboard'); - } else { - setError('passwd', { - type: 'manual', - message: "Nom d'utilisateur ou mot de passe incorrect" - }); - } - } - return ( <>

Connexion

-
- - - -

- Vous n'avez pas de compte? - - S'inscrire maintenant - -

-
+
); diff --git a/app/(auth)/sign-up/page.tsx b/app/(auth)/sign-up/page.tsx index 4474424..cf2ee5e 100644 --- a/app/(auth)/sign-up/page.tsx +++ b/app/(auth)/sign-up/page.tsx @@ -1,132 +1,11 @@ -'use client'; - -import AppLink from '@/ui/AppLink'; -import Button from '@/ui/Button'; -import Input from '@/ui/Input'; -import cookies from 'js-cookie'; -import { useRouter } from 'next/navigation'; -import { useForm } from 'react-hook-form'; - -type RegisterData = { - pseudo: string; - email: string; - passwd: string; - firstname: string; - lastname: string; - description: string; - sgroup: string; - avatar: string; -}; +import UserAuthForm from '@/ui/UserAuthForm'; export default function Page() { - const { - register, - handleSubmit, - formState: { errors }, - setError - } = useForm({ - defaultValues: { - pseudo: '', - email: '', - passwd: '', - firstname: '', - lastname: '', - description: '', - sgroup: '', - avatar: '' - } - }); - - const router = useRouter(); - - async function onSubmit(data: RegisterData) { - const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/register`, { - method: 'POST', - body: JSON.stringify(data) - }); - - const { username_valid, email_valid } = await res.json(); - - if (!username_valid || !email_valid) { - if (!username_valid) { - setError('pseudo', { - type: 'manual', - message: "Nom d'utilisateur indisponible" - }); - } - if (!email_valid) { - setError('email', { - type: 'manual', - message: 'Email déjà utilisé' - }); - } - } - - console.log(errors); - console.log(username_valid, email_valid); - - if (res.ok) { - const token = res.headers.get('Authorization')?.split(' ')[1]; - if (token) cookies.set('token', token); - if (cookies.get('token')) router.push('/dashboard'); - } - } - return ( <>

Créer un compte

-
- - - - - - - {/*

- En cliquant sur continuer, vous acceptez les{' '} - - Politique de confidentialité - - . -

*/} -

- Vous possédez un compte? - - Se connecter - -

-
+
); diff --git a/app/(legal)/privacy-policy/page.tsx b/app/(legal)/privacy-policy/page.tsx new file mode 100644 index 0000000..cb8cab1 --- /dev/null +++ b/app/(legal)/privacy-policy/page.tsx @@ -0,0 +1,12 @@ +export default function Page() { + return ( +
+
+

+ Amuse toi avec Next.js et{' '} + Tailwindcss ! +

+
+
+ ); +} diff --git a/app/dashboard/puzzles/[id]/page.tsx b/app/dashboard/puzzles/[id]/page.tsx index 2178c0f..40704d4 100644 --- a/app/dashboard/puzzles/[id]/page.tsx +++ b/app/dashboard/puzzles/[id]/page.tsx @@ -1,10 +1,9 @@ import { getPuzzle } from '@/lib/puzzles'; import Puzzle from '@/ui/Puzzle'; +import type { Metadata } from 'next'; import { notFound } from 'next/navigation'; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore -export async function generateMetadata({ params }: { params: { id: number } }) { +export async function generateMetadata({ params }: { params: { id: number } }): Promise { const { id } = params; const puzzle = await getPuzzle(id); diff --git a/package.json b/package.json index b39a88e..595d716 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "boring-avatars": "^1.7.0", "clsx": "^1.2.1", "js-cookie": "^3.0.1", - "next": "13.2.1", + "next": "13.2.3", "react": "18.2.0", "react-dom": "18.2.0", "react-hook-form": "^7.43.1", @@ -45,7 +45,7 @@ "@typescript-eslint/parser": "^5.50.0", "autoprefixer": "^10.4.13", "eslint": "8.33.0", - "eslint-config-next": "13.2.1", + "eslint-config-next": "13.2.3", "eslint-config-prettier": "^8.6.0", "eslint-plugin-prettier": "^4.2.1", "postcss": "^8.4.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8ae78e8..d623388 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,11 +13,11 @@ specifiers: boring-avatars: ^1.7.0 clsx: ^1.2.1 eslint: 8.33.0 - eslint-config-next: 13.2.1 + eslint-config-next: 13.2.3 eslint-config-prettier: ^8.6.0 eslint-plugin-prettier: ^4.2.1 js-cookie: ^3.0.1 - next: 13.2.1 + next: 13.2.3 postcss: ^8.4.21 prettier: ^2.8.3 prettier-plugin-tailwindcss: ^0.2.2 @@ -37,7 +37,7 @@ dependencies: boring-avatars: 1.7.0 clsx: 1.2.1 js-cookie: 3.0.1 - next: 13.2.1_biqbaboplfbrettd7655fr4n2y + next: 13.2.3_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 react-hook-form: 7.43.2_react@18.2.0 @@ -57,7 +57,7 @@ devDependencies: '@typescript-eslint/parser': 5.53.0_4vsywjlpuriuw3tl5oq6zy5a64 autoprefixer: 10.4.13_postcss@8.4.21 eslint: 8.33.0 - eslint-config-next: 13.2.1_4vsywjlpuriuw3tl5oq6zy5a64 + eslint-config-next: 13.2.3_4vsywjlpuriuw3tl5oq6zy5a64 eslint-config-prettier: 8.6.0_eslint@8.33.0 eslint-plugin-prettier: 4.2.1_qa2thblfovmfepmgrc7z2owbo4 postcss: 8.4.21 @@ -112,18 +112,18 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: true - /@next/env/13.2.1: - resolution: {integrity: sha512-Hq+6QZ6kgmloCg8Kgrix+4F0HtvLqVK3FZAnlAoS0eonaDemHe1Km4kwjSWRE3JNpJNcKxFHF+jsZrYo0SxWoQ==} + /@next/env/13.2.3: + resolution: {integrity: sha512-FN50r/E+b8wuqyRjmGaqvqNDuWBWYWQiigfZ50KnSFH0f+AMQQyaZl+Zm2+CIpKk0fL9QxhLxOpTVA3xFHgFow==} dev: false - /@next/eslint-plugin-next/13.2.1: - resolution: {integrity: sha512-r0i5rcO6SMAZtqiGarUVMr3k256X0R0j6pEkKg4PxqUW+hG0qgMxRVAJsuoRG5OBFkCOlSfWZJ0mP9fQdCcyNg==} + /@next/eslint-plugin-next/13.2.3: + resolution: {integrity: sha512-QmMPItnU7VeojI1KnuwL9SLFWEwmaNHNlnOGpoTwdLoSiP9sc8KYiAHWEc4/44L+cAdCxcZYvn7frcRNP5l84Q==} dependencies: glob: 7.1.7 dev: true - /@next/swc-android-arm-eabi/13.2.1: - resolution: {integrity: sha512-Yua7mUpEd1wzIT6Jjl3dpRizIfGp9NR4F2xeRuQv+ae+SDI1Em2WyM9m46UL+oeW5GpMiEHoaBagr47RScZFmQ==} + /@next/swc-android-arm-eabi/13.2.3: + resolution: {integrity: sha512-mykdVaAXX/gm+eFO2kPeVjnOCKwanJ9mV2U0lsUGLrEdMUifPUjiXKc6qFAIs08PvmTMOLMNnUxqhGsJlWGKSw==} engines: {node: '>= 10'} cpu: [arm] os: [android] @@ -131,8 +131,8 @@ packages: dev: false optional: true - /@next/swc-android-arm64/13.2.1: - resolution: {integrity: sha512-Bifcr2f6VwInOdq1uH/9lp8fH7Nf7XGkIx4XceVd32LPJqG2c6FZU8ZRBvTdhxzXVpt5TPtuXhOP4Ij9UPqsVw==} + /@next/swc-android-arm64/13.2.3: + resolution: {integrity: sha512-8XwHPpA12gdIFtope+n9xCtJZM3U4gH4vVTpUwJ2w1kfxFmCpwQ4xmeGSkR67uOg80yRMuF0h9V1ueo05sws5w==} engines: {node: '>= 10'} cpu: [arm64] os: [android] @@ -140,8 +140,8 @@ packages: dev: false optional: true - /@next/swc-darwin-arm64/13.2.1: - resolution: {integrity: sha512-gvqm+fGMYxAkwBapH0Vvng5yrb6HTkIvZfY4oEdwwYrwuLdkjqnJygCMgpNqIFmAHSXgtlWxfYv1VC8sjN81Kw==} + /@next/swc-darwin-arm64/13.2.3: + resolution: {integrity: sha512-TXOubiFdLpMfMtaRu1K5d1I9ipKbW5iS2BNbu8zJhoqrhk3Kp7aRKTxqFfWrbliAHhWVE/3fQZUYZOWSXVQi1w==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] @@ -149,8 +149,8 @@ packages: dev: false optional: true - /@next/swc-darwin-x64/13.2.1: - resolution: {integrity: sha512-HGqVqmaZWj6zomqOZUVbO5NhlABL0iIaxTmd0O5B0MoMa5zpDGoaHSG+fxgcWMXcGcxmUNchv1NfNOYiTKoHOg==} + /@next/swc-darwin-x64/13.2.3: + resolution: {integrity: sha512-GZctkN6bJbpjlFiS5pylgB2pifHvgkqLAPumJzxnxkf7kqNm6rOGuNjsROvOWVWXmKhrzQkREO/WPS2aWsr/yw==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] @@ -158,8 +158,8 @@ packages: dev: false optional: true - /@next/swc-freebsd-x64/13.2.1: - resolution: {integrity: sha512-N/a4JarAq+E+g+9K2ywJUmDIgU2xs2nA+BBldH0oq4zYJMRiUhL0iaN9G4e72VmGOJ61L/3W6VN8RIUOwTLoqQ==} + /@next/swc-freebsd-x64/13.2.3: + resolution: {integrity: sha512-rK6GpmMt/mU6MPuav0/M7hJ/3t8HbKPCELw/Uqhi4732xoq2hJ2zbo2FkYs56y6w0KiXrIp4IOwNB9K8L/q62g==} engines: {node: '>= 10'} cpu: [x64] os: [freebsd] @@ -167,8 +167,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm-gnueabihf/13.2.1: - resolution: {integrity: sha512-WaFoerF/eRbhbE57TaIGJXbQAERADZ/RZ45u6qox9beb5xnWsyYgzX+WuN7Tkhyvga0/aMuVYFzS9CEay7D+bw==} + /@next/swc-linux-arm-gnueabihf/13.2.3: + resolution: {integrity: sha512-yeiCp/Odt1UJ4KUE89XkeaaboIDiVFqKP4esvoLKGJ0fcqJXMofj4ad3tuQxAMs3F+qqrz9MclqhAHkex1aPZA==} engines: {node: '>= 10'} cpu: [arm] os: [linux] @@ -176,8 +176,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-gnu/13.2.1: - resolution: {integrity: sha512-R+Jhc1/RJTnncE9fkePboHDNOCm1WJ8daanWbjKhfPySMyeniKYRwGn5SLYW3S8YlRS0QVdZaaszDSZWgUcsmA==} + /@next/swc-linux-arm64-gnu/13.2.3: + resolution: {integrity: sha512-/miIopDOUsuNlvjBjTipvoyjjaxgkOuvlz+cIbbPcm1eFvzX2ltSfgMgty15GuOiR8Hub4FeTSiq3g2dmCkzGA==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -185,8 +185,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-musl/13.2.1: - resolution: {integrity: sha512-oI1UfZPidGAVddlL2eOTmfsuKV9EaT1aktIzVIxIAgxzQSdwsV371gU3G55ggkurzfdlgF3GThFePDWF0d8dmw==} + /@next/swc-linux-arm64-musl/13.2.3: + resolution: {integrity: sha512-sujxFDhMMDjqhruup8LLGV/y+nCPi6nm5DlFoThMJFvaaKr/imhkXuk8uCTq4YJDbtRxnjydFv2y8laBSJVC2g==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -194,8 +194,8 @@ packages: dev: false optional: true - /@next/swc-linux-x64-gnu/13.2.1: - resolution: {integrity: sha512-PCygPwrQmS+7WUuAWWioWMZCzZm4PG91lfRxToLDg7yIm/3YfAw5N2EK2TaM9pzlWdvHQAqRMX/oLvv027xUiA==} + /@next/swc-linux-x64-gnu/13.2.3: + resolution: {integrity: sha512-w5MyxPknVvC9LVnMenAYMXMx4KxPwXuJRMQFvY71uXg68n7cvcas85U5zkdrbmuZ+JvsO5SIG8k36/6X3nUhmQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -203,8 +203,8 @@ packages: dev: false optional: true - /@next/swc-linux-x64-musl/13.2.1: - resolution: {integrity: sha512-sUAKxo7CFZYGHNxheGh9nIBElLYBM6md/liEGfOTwh/xna4/GTTcmkGWkF7PdnvaYNgcPIQgHIMYiAa6yBKAVw==} + /@next/swc-linux-x64-musl/13.2.3: + resolution: {integrity: sha512-CTeelh8OzSOVqpzMFMFnVRJIFAFQoTsI9RmVJWW/92S4xfECGcOzgsX37CZ8K982WHRzKU7exeh7vYdG/Eh4CA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -212,8 +212,8 @@ packages: dev: false optional: true - /@next/swc-win32-arm64-msvc/13.2.1: - resolution: {integrity: sha512-qDmyEjDBpl/vBXxuOOKKWmPQOcARcZIMach1s7kjzaien0SySut/PHRlj56sosa81Wt4hTGhfhZ1R7g1n7+B8w==} + /@next/swc-win32-arm64-msvc/13.2.3: + resolution: {integrity: sha512-7N1KBQP5mo4xf52cFCHgMjzbc9jizIlkTepe9tMa2WFvEIlKDfdt38QYcr9mbtny17yuaIw02FXOVEytGzqdOQ==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] @@ -221,8 +221,8 @@ packages: dev: false optional: true - /@next/swc-win32-ia32-msvc/13.2.1: - resolution: {integrity: sha512-2joqFQ81ZYPg6DcikIzQn3DgjKglNhPAozx6dL5sCNkr1CPMD0YIkJgT3CnYyMHQ04Qi3Npv0XX3MD6LJO8OCA==} + /@next/swc-win32-ia32-msvc/13.2.3: + resolution: {integrity: sha512-LzWD5pTSipUXTEMRjtxES/NBYktuZdo7xExJqGDMnZU8WOI+v9mQzsmQgZS/q02eIv78JOCSemqVVKZBGCgUvA==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] @@ -230,8 +230,8 @@ packages: dev: false optional: true - /@next/swc-win32-x64-msvc/13.2.1: - resolution: {integrity: sha512-r3+0fSaIZT6N237iMzwUhfNwjhAFvXjqB+4iuW+wcpxW+LHm1g/IoxN8eSRcb8jPItC86JxjAxpke0QL97qd6g==} + /@next/swc-win32-x64-msvc/13.2.3: + resolution: {integrity: sha512-aLG2MaFs4y7IwaMTosz2r4mVbqRyCnMoFqOcmfTi7/mAS+G4IMH0vJp4oLdbshqiVoiVuKrAfqtXj55/m7Qu1Q==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -1032,8 +1032,8 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-next/13.2.1_4vsywjlpuriuw3tl5oq6zy5a64: - resolution: {integrity: sha512-2GAx7EjSiCzJN6H2L/v1kbYrNiwQxzkyjy6eWSjuhAKt+P6d3nVNHGy9mON8ZcYd72w/M8kyMjm4UB9cvijgrw==} + /eslint-config-next/13.2.3_4vsywjlpuriuw3tl5oq6zy5a64: + resolution: {integrity: sha512-kPulHiQEHGei9hIaaNGygHRc0UzlWM+3euOmYbxNkd2Nbhci5rrCDeMBMPSV8xgUssphDGmwDHWbk4VZz3rlZQ==} peerDependencies: eslint: ^7.23.0 || ^8.0.0 typescript: '>=3.3.1' @@ -1041,7 +1041,7 @@ packages: typescript: optional: true dependencies: - '@next/eslint-plugin-next': 13.2.1 + '@next/eslint-plugin-next': 13.2.3 '@rushstack/eslint-patch': 1.2.0 '@typescript-eslint/parser': 5.53.0_4vsywjlpuriuw3tl5oq6zy5a64 eslint: 8.33.0 @@ -2251,8 +2251,8 @@ packages: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: true - /next/13.2.1_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-qhgJlDtG0xidNViJUPeQHLGJJoT4zDj/El7fP3D3OzpxJDUfxsm16cK4WTMyvSX1ciIfAq05u+0HqFAa+VJ+Hg==} + /next/13.2.3_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-nKFJC6upCPN7DWRx4+0S/1PIOT7vNlCT157w9AzbXEgKy6zkiPKEt5YyRUsRZkmpEqBVrGgOqNfwecTociyg+w==} engines: {node: '>=14.6.0'} hasBin: true peerDependencies: @@ -2272,7 +2272,7 @@ packages: sass: optional: true dependencies: - '@next/env': 13.2.1 + '@next/env': 13.2.3 '@swc/helpers': 0.4.14 caniuse-lite: 1.0.30001457 postcss: 8.4.14 @@ -2280,19 +2280,19 @@ packages: react-dom: 18.2.0_react@18.2.0 styled-jsx: 5.1.1_react@18.2.0 optionalDependencies: - '@next/swc-android-arm-eabi': 13.2.1 - '@next/swc-android-arm64': 13.2.1 - '@next/swc-darwin-arm64': 13.2.1 - '@next/swc-darwin-x64': 13.2.1 - '@next/swc-freebsd-x64': 13.2.1 - '@next/swc-linux-arm-gnueabihf': 13.2.1 - '@next/swc-linux-arm64-gnu': 13.2.1 - '@next/swc-linux-arm64-musl': 13.2.1 - '@next/swc-linux-x64-gnu': 13.2.1 - '@next/swc-linux-x64-musl': 13.2.1 - '@next/swc-win32-arm64-msvc': 13.2.1 - '@next/swc-win32-ia32-msvc': 13.2.1 - '@next/swc-win32-x64-msvc': 13.2.1 + '@next/swc-android-arm-eabi': 13.2.3 + '@next/swc-android-arm64': 13.2.3 + '@next/swc-darwin-arm64': 13.2.3 + '@next/swc-darwin-x64': 13.2.3 + '@next/swc-freebsd-x64': 13.2.3 + '@next/swc-linux-arm-gnueabihf': 13.2.3 + '@next/swc-linux-arm64-gnu': 13.2.3 + '@next/swc-linux-arm64-musl': 13.2.3 + '@next/swc-linux-x64-gnu': 13.2.3 + '@next/swc-linux-x64-musl': 13.2.3 + '@next/swc-win32-arm64-msvc': 13.2.3 + '@next/swc-win32-ia32-msvc': 13.2.3 + '@next/swc-win32-x64-msvc': 13.2.3 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros diff --git a/ui/Puzzle.tsx b/ui/Puzzle.tsx index 8c0c3a4..709f55f 100644 --- a/ui/Puzzle.tsx +++ b/ui/Puzzle.tsx @@ -1,23 +1,51 @@ 'use client'; -import { Puzzle as PuzzleType } from '@/lib/puzzles'; +import type { Puzzle as PuzzleType } from '@/lib/puzzles'; import { notFound } from 'next/navigation'; +import { useForm } from 'react-hook-form'; import Button from './Button'; import Input from './Input'; import ToHTML from './ToHTML'; +type PuzzleData = { + answer: string; + code_file: File[]; +}; + export default function Puzzle({ puzzle }: { puzzle: PuzzleType }) { - // const puzzle = getPuzzle(id); - - // if (isLoading) { - // return <>; - // } - if (!puzzle) { notFound(); } + const { + register, + handleSubmit, + formState: { errors }, + setError + } = useForm({ + defaultValues: { + answer: '', + code_file: undefined + } + }); + + async function onSubmit(data: PuzzleData) { + const formData = new FormData(); + + formData.append('answer', data.answer); + formData.append('code_file', data.code_file[0]); + + const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/puzzleResponse/${puzzle.id}`, { + method: 'POST', + body: formData + }); + + if (res.ok) { + alert('Réponse correcte !'); + } + } + return (
@@ -27,21 +55,25 @@ export default function Puzzle({ puzzle }: { puzzle: PuzzleType }) {
-
+
- {/* {!isSignIn && ( -

- En cliquant sur continuer, vous acceptez les{' '} - - Politique de confidentialité +

+ {!isSignIn && ( +

+ En cliquant sur continuer, vous acceptez les{' '} + + Politique de confidentialité + + . +

+ )} +

+ {isSignIn ? "Vous n'avez pas de compte?" : 'Vous possédez un compte?'}{' '} + + {isSignIn ? "S'inscrire maintenant" : 'Se connecter'} - .

- )} */} -

- {isSignIn ? "Vous n'avez pas de compte?" : 'Vous possédez un compte?'}{' '} - - {isSignIn ? "S'inscrire maintenant" : 'Se connecter'} - -

+
); }