Sfoglia il codice sorgente

Merge pull request #11465 from overleaf/td-remove-ace-tooltip

Remove info icon next to editor switch for users without Ace option

GitOrigin-RevId: 69fa8af8ddd40c47a58de50eb9aa79cc82629aa8
Tim Down 3 anni fa
parent
commit
fd90261313

+ 1 - 1
services/web/frontend/js/features/source-editor/components/editor-switch.tsx

@@ -87,7 +87,7 @@ function EditorSwitch() {
 
   return (
     <div className="editor-toggle-switch">
-      <Badge />
+      {showLegacySourceEditor ? <Badge /> : null}
 
       <fieldset className="toggle-switch">
         <legend className="sr-only">Editor mode.</legend>