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