From eeb80925e00555ddff1c4f7d3b8d68f8f100ac78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o?= Date: Mon, 29 Dec 2025 13:33:19 +0100 Subject: [PATCH] should fix cgu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Théo --- src/screens/CreatePassword.js | 49 ++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/src/screens/CreatePassword.js b/src/screens/CreatePassword.js index ff79e8f..50e3a75 100644 --- a/src/screens/CreatePassword.js +++ b/src/screens/CreatePassword.js @@ -7,7 +7,6 @@ import { background } from "../assets"; import BorderGradientButton from "../components/BorderGradientButton"; import GradientButton from "../components/GradientButton"; import { Input } from "../components/Input"; -import AppCheckbox from "../components/AppCheckbox"; import ItemContainer from "../components/ItemContainer/ItemContainer"; import { checkIfPasswordIsStrongEnough, @@ -56,6 +55,10 @@ const CreatePassword = () => { const isPasswordValid = checkIfPasswordIsStrongEnough({ password }); + const handleToggleCguAccepted = () => { + setIsCguAccepted((prev) => !prev); + }; + const handleOpenCguModal = () => { setHasScrolledCguToEnd(false); setIsCguModalVisible(true); @@ -207,9 +210,49 @@ const CreatePassword = () => { flexDirection: "row", alignItems: "center", gap: 8, + flexWrap: "wrap", }} > - + + + {isCguAccepted ? ( + + ) : null} + + + J'accepte les + + { textDecorationLine: "underline", }} > - Voir les CGU + CGU