🎨 Suppression des actions du pied de page sur les intégrations

pull/863/head
Maxime Quandalle 2020-02-02 21:45:52 +01:00
parent 389f77d850
commit 283bd5bf8e
No known key found for this signature in database
GPG Key ID: 428641C03D29CA10
3 changed files with 2 additions and 49 deletions

View File

@ -59,7 +59,6 @@
"redux-thunk": "^2.3.0",
"regenerator-runtime": "^0.13.3",
"reselect": "^4.0.0",
"screenfull": "^3.3.2",
"swr": "^0.1.16",
"whatwg-fetch": "^3.0.0"
},

View File

@ -1,47 +1,13 @@
import LangSwitcher from 'Components/LangSwitcher'
import React, { useEffect, useState } from 'react'
import emoji from 'react-easy-emoji'
import { Trans } from 'react-i18next'
import screenfull from 'screenfull'
import { isIE } from '../../../../utils'
import React from 'react'
import Privacy from '../../layout/Footer/Privacy'
export default function IframeFooter() {
const [isFullscreen, setIsFullscreen] = useState(screenfull.isFullscreen)
useEffect(() => {
screenfull.enabled &&
screenfull.onchange(() => setIsFullscreen(screenfull.isFullscreen))
}, [])
return (
<>
<div
className="ui__ container"
style={{
textAlign: 'right',
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between'
}}
style={{ textAlign: 'right', paddingTop: 20 }}
>
<LangSwitcher className="ui__ button simple" />
{screenfull.enabled && !isFullscreen && !isIE() && (
<button
className="ui__ button small"
onClick={() => {
screenfull.toggle()
}}
>
{emoji('🖵')}&nbsp;
<Trans>Plein écran</Trans>
</button>
)}
{window?.print && (
<button className="ui__ button small" onClick={() => window.print()}>
{emoji('🖨')}
<Trans>Imprimer</Trans>
</button>
)}
<Privacy />
</div>
</>

View File

@ -1135,13 +1135,6 @@
resolved "https://registry.yarnpkg.com/@types/classnames/-/classnames-2.2.9.tgz#d868b6febb02666330410fe7f58f3c4b8258be7b"
integrity sha512-MNl+rT5UmZeilaPxAVs6YaPC2m6aA8rofviZbhbxpPpl61uKodfdQVsBtgJGTqGizEf02oW3tsVe7FYB8kK14A==
"@types/cleave.js@^1.4.1":
version "1.4.1"
resolved "https://registry.yarnpkg.com/@types/cleave.js/-/cleave.js-1.4.1.tgz#1eaa12dcbd1f2187fc580f0bf84dbc9f8834e333"
integrity sha512-53CbLKtK58uTfOCFOT1FMVKF5Zt1Onpk5sm37hY5cO3Uy4DfXzhQaU1PNMf53S7DJpEq1hWxZ+d2uN/W6YZh5w==
dependencies:
"@types/react" "*"
"@types/color-convert@^1.9.0":
version "1.9.0"
resolved "https://registry.yarnpkg.com/@types/color-convert/-/color-convert-1.9.0.tgz#bfa8203e41e7c65471e9841d7e306a7cd8b5172d"
@ -9729,11 +9722,6 @@ schema-utils@^1.0.0:
ajv-errors "^1.0.0"
ajv-keywords "^3.1.0"
screenfull@^3.3.2:
version "3.3.3"
resolved "https://registry.yarnpkg.com/screenfull/-/screenfull-3.3.3.tgz#8cf7e706aceac2e75131aadcb81b622acfe11d39"
integrity sha512-DzYUuXr+OV2BDvYXaYzlYgJd4WXZZ2CW5NFC7Kw6TUCpzXJAx4MwlVD6CH+Mu6fi8rfAQIQfqdFZ4jtDsEkWig==
select@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/select/-/select-1.1.2.tgz#0e7350acdec80b1108528786ec1d4418d11b396d"