From 428d82618fb71b4815b053e0f488fe98cbc1fbe7 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 23 Feb 2022 10:06:15 +0000 Subject: [PATCH] Remove unused props from ToolbarHeader (#6864) GitOrigin-RevId: cef9fb44f9c368084e4a2a7dd017cea8899adbaa --- .../components/editor-navigation-toolbar-root.js | 2 -- .../editor-navigation-toolbar/components/toolbar-header.js | 4 ---- 2 files changed, 6 deletions(-) diff --git a/services/web/frontend/js/features/editor-navigation-toolbar/components/editor-navigation-toolbar-root.js b/services/web/frontend/js/features/editor-navigation-toolbar/components/editor-navigation-toolbar-root.js index 6bba84ca07..35aae7414c 100644 --- a/services/web/frontend/js/features/editor-navigation-toolbar/components/editor-navigation-toolbar-root.js +++ b/services/web/frontend/js/features/editor-navigation-toolbar/components/editor-navigation-toolbar-root.js @@ -138,8 +138,6 @@ const EditorNavigationToolbarRoot = React.memo( pdfButtonIsVisible={pdfLayout === 'flat'} togglePdfView={togglePdfView} trackChangesVisible={trackChangesVisible} - pdfLayout={pdfLayout} - view={view} /> ) } diff --git a/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.js b/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.js index 315612eb7d..9752b40380 100644 --- a/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.js +++ b/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.js @@ -35,12 +35,10 @@ const ToolbarHeader = React.memo(function ToolbarHeader({ renameProject, hasRenamePermissions, openShareModal, - pdfLayout, pdfViewIsOpen, pdfButtonIsVisible, togglePdfView, trackChangesVisible, - view, }) { const { t } = useTranslation() const shouldDisplayPublishButton = hasPublishPermissions && PublishButton @@ -128,12 +126,10 @@ ToolbarHeader.propTypes = { renameProject: PropTypes.func.isRequired, hasRenamePermissions: PropTypes.bool, openShareModal: PropTypes.func.isRequired, - pdfLayout: PropTypes.string.isRequired, pdfViewIsOpen: PropTypes.bool, pdfButtonIsVisible: PropTypes.bool, togglePdfView: PropTypes.func.isRequired, trackChangesVisible: PropTypes.bool, - view: PropTypes.string, } export default ToolbarHeader