🐛 Retire le scroll à l'ouverture de l'overlay
parent
0870b3e3bf
commit
5269d32d81
|
@ -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>
|
||||
)}
|
||||
|
|
|
@ -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>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue