From 283bd5bf8e30bf1121aaca5dd5c64a44163a6bb9 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sun, 2 Feb 2020 21:45:52 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Suppression=20des=20actions=20du?= =?UTF-8?q?=20pied=20de=20page=20sur=20les=20int=C3=A9grations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - .../pages/Iframes/IframeFooter.tsx | 38 +------------------ yarn.lock | 12 ------ 3 files changed, 2 insertions(+), 49 deletions(-) diff --git a/package.json b/package.json index 65afa4dcb..c797c44b9 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/source/sites/mon-entreprise.fr/pages/Iframes/IframeFooter.tsx b/source/sites/mon-entreprise.fr/pages/Iframes/IframeFooter.tsx index c8bbba989..119b84196 100644 --- a/source/sites/mon-entreprise.fr/pages/Iframes/IframeFooter.tsx +++ b/source/sites/mon-entreprise.fr/pages/Iframes/IframeFooter.tsx @@ -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 ( <>
- - {screenfull.enabled && !isFullscreen && !isIE() && ( - - )} - {window?.print && ( - - )}
diff --git a/yarn.lock b/yarn.lock index ee639097c..0976ae81d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"