Ver Fonte

bg-secondary when diff is present

Shun Miyazawa há 1 ano atrás
pai
commit
4a66b77fcc

+ 3 - 1
apps/app/src/components/Navbar/PageEditorModeManager.tsx

@@ -93,7 +93,9 @@ export const PageEditorModeManager = (props: Props): JSX.Element => {
       return 'bg-primary';
       return 'bg-primary';
     }
     }
 
 
-    // TODO: https://redmine.weseek.co.jp/issues/145652
+    if (currentPageYjsData?.hasRevisionBodyDiff != null && currentPageYjsData.hasRevisionBodyDiff) {
+      return 'bg-secondary';
+    }
   }, [currentPageYjsData]);
   }, [currentPageYjsData]);
 
 
   return (
   return (