diff --git a/source/components/NewsletterRegister.tsx b/source/components/NewsletterRegister.tsx deleted file mode 100644 index 7bc40fb86..000000000 --- a/source/components/NewsletterRegister.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import { usePersistingState } from 'Components/utils/persistState' -import { TrackerContext } from 'Components/utils/withTracker' -import React, { useContext } from 'react' -import { Trans, useTranslation } from 'react-i18next' - -export default function Newsletter() { - const [registered, setUserRegistered] = usePersistingState( - 'app::newsletter::registered', - false - ) - const { t, i18n } = useTranslation() - const tracker = useContext(TrackerContext) - - const onSubmit = () => { - tracker.push(['trackEvent', 'Newsletter', 'registered']) - setTimeout(() => setUserRegistered(true), 0) - } - - if (i18n.language !== 'fr' && registered) { - return null - } - - const sinscrire = t("S'inscrire") - - return ( - <> - {' '} -
-