mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
Remove equation preview beta badge (#23133)
GitOrigin-RevId: 1fb233dbceaf7f006f29b4f457084c802696e108
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user