diff --git a/components/SuccessDonation.tsx b/components/SuccessDonation.tsx index 9301bc2..c42fc8f 100644 --- a/components/SuccessDonation.tsx +++ b/components/SuccessDonation.tsx @@ -17,12 +17,8 @@ import { red } from "@material-ui/core/colors"; import axios from "axios"; import styles from "./Form.module.css"; -import RoxContainer from "../services/rox/RoxContainer"; -import service from "../services/rox/RoxService"; import { DonationContext } from "./contexts/DonationContext"; -service(RoxContainer); - function createYearList(): Array { const year = new Date().getFullYear(); const range = 89; @@ -109,8 +105,6 @@ export const SuccessDonation = () => { const [errorUrl, setErrorUrl] = useState(false); const isUserAlreadyRegistered = () => donation.userExists.value; - const registrationFlagEnabled = () => - JSON.parse(RoxContainer.shouldShowRegistrationForm.getValue()); const yearsList = createYearList(); @@ -242,9 +236,7 @@ export const SuccessDonation = () => {

Muito obrigado!

Agradecemos por escolher fazer parte dessa iniciativa.

Enviaremos também um email de confirmando sua doação.

- {registrationFlagEnabled() && - !isUserAlreadyRegistered() && - !signupFinish ? ( + {!isUserAlreadyRegistered() && !signupFinish ? ( <>

Conclua o seu cadastro para somar pontos à sua turma no Ranking