Parcourir la source

bg-secondary when diff is present

Shun Miyazawa il y a 2 ans
Parent
commit
4a66b77fcc
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      apps/app/src/components/Navbar/PageEditorModeManager.tsx

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

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