Преглед изворни кода

Remove equation preview beta badge (#23133)

GitOrigin-RevId: 1fb233dbceaf7f006f29b4f457084c802696e108
Alf Eaton пре 1 година
родитељ
комит
b0a1a4e9d8

+ 0 - 17
services/web/frontend/js/features/source-editor/components/math-preview-tooltip.tsx

@@ -29,7 +29,6 @@ import {
   Dropdown as BS3Dropdown,
   MenuItem as BS3MenuItem,
 } from 'react-bootstrap'
-import BetaBadgeIcon from '@/shared/components/beta-badge-icon'
 
 const MathPreviewTooltipContainer: FC = () => {
   const state = useCodeMirrorStateContext()
@@ -96,8 +95,6 @@ const MathPreviewTooltip: FC<{ mathContent: HTMLDivElement }> = ({
     <>
       <div className="ol-cm-math-tooltip">
         <span ref={mathRef} />
-        <CustomSplitTestBadge />
-
         <BootstrapVersionSwitcher
           bs5={
             <Dropdown align="end">
@@ -211,18 +208,4 @@ const MathPreviewTooltip: FC<{ mathContent: HTMLDivElement }> = ({
   )
 }
 
-// Temporary SplitTest badge for just this component that always shows
-// as in beta and doesn't have a tooltip
-const CustomSplitTestBadge: FC = () => {
-  return (
-    <a
-      href="https://forms.gle/uDVGSqnBBJQ8fUPt5"
-      target="_blank"
-      rel="noopener noreferrer"
-    >
-      <BetaBadgeIcon phase="beta" />
-    </a>
-  )
-}
-
 export default MathPreviewTooltipContainer