From dd16b609994777cf6d89da2adba6f0adbf2db642 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 8 Jan 2025 09:14:21 +0000 Subject: [PATCH] Remove feedback link from spelling suggestions (#22634) GitOrigin-RevId: f75dffe5395ad15441aee603c494afdf8488642e --- .../spelling-suggestions-feedback.tsx | 55 ------------------- .../spelling/spelling-suggestions.tsx | 16 ------ 2 files changed, 71 deletions(-) delete mode 100644 services/web/frontend/js/features/source-editor/extensions/spelling/spelling-suggestions-feedback.tsx diff --git a/services/web/frontend/js/features/source-editor/extensions/spelling/spelling-suggestions-feedback.tsx b/services/web/frontend/js/features/source-editor/extensions/spelling/spelling-suggestions-feedback.tsx deleted file mode 100644 index 8143ac343c..0000000000 --- a/services/web/frontend/js/features/source-editor/extensions/spelling/spelling-suggestions-feedback.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import { FC, memo } from 'react' -import { useTranslation } from 'react-i18next' -import OLTooltip from '@/features/ui/components/ol/ol-tooltip' -import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher' -import classnames from 'classnames' -import MaterialIcon from '@/shared/components/material-icon' -import { Dropdown } from 'react-bootstrap-5' -import { bsVersion, isBootstrap5 } from '@/features/utils/bootstrap-5' -import PolymorphicComponent from '@/shared/components/polymorphic-component' - -const SpellingSuggestionsFeedback: FC = () => { - const { t } = useTranslation() - return ( - - The spell-checker has been updated. -
- Click to give feedback - - } - tooltipProps={{ className: 'split-test-badge-tooltip' }} - overlayProps={{ placement: 'bottom', delay: 100 }} - > - - - - } - bs5={ - - } - /> - {t('give_feedback')} - - -
- ) -} - -export default memo(SpellingSuggestionsFeedback) diff --git a/services/web/frontend/js/features/source-editor/extensions/spelling/spelling-suggestions.tsx b/services/web/frontend/js/features/source-editor/extensions/spelling/spelling-suggestions.tsx index bee819a224..c0cc7a3496 100644 --- a/services/web/frontend/js/features/source-editor/extensions/spelling/spelling-suggestions.tsx +++ b/services/web/frontend/js/features/source-editor/extensions/spelling/spelling-suggestions.tsx @@ -11,7 +11,6 @@ import { useTranslation } from 'react-i18next' import getMeta from '@/utils/meta' import classnames from 'classnames' import { sendMB } from '@/infrastructure/event-tracking' -import SpellingSuggestionsFeedback from './spelling-suggestions-feedback' import { SpellingSuggestionsLanguage } from './spelling-suggestions-language' import { captureException } from '@/infrastructure/error-reporter' import { debugConsole } from '@/utils/debugging' @@ -181,15 +180,6 @@ const B3SpellingSuggestions: FC = ({ handleClose={handleClose} /> - - {getMeta('ol-isSaas') && ( - <> -
  • -
  • - -
  • - - )} ) } @@ -280,12 +270,6 @@ const B5SpellingSuggestions: FC = ({ language={language} handleClose={handleClose} /> - {getMeta('ol-isSaas') && ( - <> - - - - )} )