فهرست منبع

fix fb for temporary variable

zahmis 5 سال پیش
والد
کامیت
26a8a9d33e
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      src/client/js/components/Page/DisplaySwitcher.jsx

+ 4 - 3
src/client/js/components/Page/DisplaySwitcher.jsx

@@ -6,12 +6,13 @@ import NavigationContainer from '../../services/NavigationContainer';
 
 
 const DisplaySwitcher = (props) => {
 const DisplaySwitcher = (props) => {
   const { navigationContainer } = props;
   const { navigationContainer } = props;
+  const { editorMode } = navigationContainer.state;
 
 
   return (
   return (
     <>
     <>
-      {navigationContainer.state.editorMode === 'view' && 'view'}
-      {navigationContainer.state.editorMode === 'edit' && 'edit'}
-      {navigationContainer.state.editorMode === 'hackmd' && 'hackmd'}
+      {editorMode === 'view' && 'view'}
+      {editorMode === 'edit' && 'edit'}
+      {editorMode === 'hackmd' && 'hackmd'}
     </>
     </>
   );
   );