🐛 Retire le scroll à l'ouverture de l'overlay

pull/976/head
Maxime Quandalle 2020-04-12 19:37:28 +02:00
parent 0870b3e3bf
commit 5269d32d81
2 changed files with 0 additions and 4 deletions

View File

@ -1,5 +1,4 @@
import Overlay from 'Components/Overlay'
import { ScrollToTop } from 'Components/utils/Scroll'
import React, { useState } from 'react'
import { Trans } from 'react-i18next'
@ -78,7 +77,6 @@ export default function LegalNotice() {
</button>
{opened && (
<Overlay onClose={handleClose} style={{ textAlign: 'left' }}>
<ScrollToTop />
<LegalNoticeContent />
</Overlay>
)}

View File

@ -1,5 +1,4 @@
import Overlay from 'Components/Overlay'
import { ScrollToTop } from 'Components/utils/Scroll'
import React, { useState } from 'react'
import { Trans, useTranslation } from 'react-i18next'
@ -21,7 +20,6 @@ export default function Privacy() {
</button>
{opened && (
<Overlay onClose={handleClose} style={{ textAlign: 'left' }}>
<ScrollToTop />
<PrivacyContent language={i18n.language} />
</Overlay>
)}