mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 16:19:02 +02:00
Remove unused props from ToolbarHeader (#6864)
GitOrigin-RevId: cef9fb44f9c368084e4a2a7dd017cea8899adbaa
This commit is contained in:
-2
@@ -138,8 +138,6 @@ const EditorNavigationToolbarRoot = React.memo(
|
||||
pdfButtonIsVisible={pdfLayout === 'flat'}
|
||||
togglePdfView={togglePdfView}
|
||||
trackChangesVisible={trackChangesVisible}
|
||||
pdfLayout={pdfLayout}
|
||||
view={view}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user