From 731d84f4bef25efde9a98a1b9c558d84ec104abb Mon Sep 17 00:00:00 2001 From: btzr-io Date: Wed, 29 May 2019 13:35:46 -0600 Subject: [PATCH] remove legacy method usage from file page --- src/ui/component/fileActions/view.jsx | 13 +++---------- src/ui/page/file/view.jsx | 27 +++++++++++---------------- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/src/ui/component/fileActions/view.jsx b/src/ui/component/fileActions/view.jsx index f7e64bc5b..4cf88efda 100644 --- a/src/ui/component/fileActions/view.jsx +++ b/src/ui/component/fileActions/view.jsx @@ -19,11 +19,11 @@ type Props = { }; class FileActions extends React.PureComponent { - MaximizeViewer() { + maximizeViewer = () => { // Get viewer container const viewer = document.getElementsByClassName('content__embedded')[0]; viewer.webkitRequestFullscreen(); - } + }; render() { const { fileInfo, uri, openModal, claimIsMine, claimId, showFullscreen } = this.props; @@ -33,14 +33,7 @@ class FileActions extends React.PureComponent { {showFullscreen && ( -