From 335ac6a67bb5eb298f02f66b78a64d55aeb02442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Alby?= Date: Wed, 20 Jul 2022 16:02:01 +0200 Subject: [PATCH] Merge pull request #8902 from overleaf/ta-layout-dropdown-icons Change Layout Dropdown Icons GitOrigin-RevId: 7b455997ef2004cb146a0927da122c38cb06aa3c --- .../components/icon-editor-only.js | 39 ------------------- .../components/icon-pdf-only.js | 25 ------------ .../components/layout-dropdown-button.js | 28 ++++++------- 3 files changed, 15 insertions(+), 77 deletions(-) delete mode 100644 services/web/frontend/js/features/editor-navigation-toolbar/components/icon-editor-only.js delete mode 100644 services/web/frontend/js/features/editor-navigation-toolbar/components/icon-pdf-only.js diff --git a/services/web/frontend/js/features/editor-navigation-toolbar/components/icon-editor-only.js b/services/web/frontend/js/features/editor-navigation-toolbar/components/icon-editor-only.js deleted file mode 100644 index 6118050620..0000000000 --- a/services/web/frontend/js/features/editor-navigation-toolbar/components/icon-editor-only.js +++ /dev/null @@ -1,39 +0,0 @@ -function IconEditorOnly() { - const color = '#505050' // match color from .dropdown-menu > li > a - - return ( - - - - - - - ) -} - -export default IconEditorOnly diff --git a/services/web/frontend/js/features/editor-navigation-toolbar/components/icon-pdf-only.js b/services/web/frontend/js/features/editor-navigation-toolbar/components/icon-pdf-only.js deleted file mode 100644 index 5a487ac6b1..0000000000 --- a/services/web/frontend/js/features/editor-navigation-toolbar/components/icon-pdf-only.js +++ /dev/null @@ -1,25 +0,0 @@ -function IconPdfOnly() { - const color = '#505050' // match color from .dropdown-menu > li > a - - return ( - - - - - - - ) -} - -export default IconPdfOnly diff --git a/services/web/frontend/js/features/editor-navigation-toolbar/components/layout-dropdown-button.js b/services/web/frontend/js/features/editor-navigation-toolbar/components/layout-dropdown-button.js index 26957239cd..725edfe051 100644 --- a/services/web/frontend/js/features/editor-navigation-toolbar/components/layout-dropdown-button.js +++ b/services/web/frontend/js/features/editor-navigation-toolbar/components/layout-dropdown-button.js @@ -6,8 +6,6 @@ import Tooltip from '../../../shared/components/tooltip' import Icon from '../../../shared/components/icon' import IconChecked from '../../../shared/components/icon-checked' import ControlledDropdown from '../../../shared/components/controlled-dropdown' -import IconEditorOnly from './icon-editor-only' -import IconPdfOnly from './icon-pdf-only' import { useLayoutContext } from '../../../shared/context/layout-context' import * as eventTracking from '../../../infrastructure/event-tracking' import useEventListener from '../../../shared/hooks/use-event-listener' @@ -24,10 +22,22 @@ function IconLayout() { return } +function IconSplit() { + return +} + function IconDetach() { return } +function IconEditorOnly() { + return +} + +function IconPdfOnly() { + return +} + function IconCheckmark({ iconFor, pdfLayout, view, detachRole }) { if (detachRole === 'detacher' || view === 'history') { return @@ -164,7 +174,7 @@ function LayoutDropdownButton() { detachRole={detachRole} /> } - icon={} + icon={} text={t('editor_and_pdf')} /> @@ -178,11 +188,7 @@ function LayoutDropdownButton() { detachRole={detachRole} /> } - icon={ - - - - } + icon={} text={ } - icon={ - - - - } + icon={} text={