Yuki Takei 3 лет назад
Родитель
Сommit
deae5684a2
2 измененных файлов с 6 добавлено и 2 удалено
  1. 1 0
      packages/app/src/client/services/layout.ts
  2. 5 2
      packages/app/src/stores/ui.tsx

+ 1 - 0
packages/app/src/client/services/layout.ts

@@ -6,6 +6,7 @@ export const useEditorModeClassName = (): string => {
   const { getClassNamesByEditorMode } = useEditorMode();
 
   // TODO: Enable `editing-sidebar` class somehow
+  // https://redmine.weseek.co.jp/issues/111527
   // const classNames: string[] = [];
   // if (currentPage != null) {
   //   const isSidebar = currentPage.path === '/Sidebar';

+ 5 - 2
packages/app/src/stores/ui.tsx

@@ -79,7 +79,8 @@ export const useIsMobile = (): SWRResponse<boolean, Error> => {
   return useStaticSWR<boolean, Error>(key, undefined, configuration);
 };
 
-// TODO: Enable `editing-sidebar` class somehow
+// TODO: Enable `editing-sidebar` class
+// https://redmine.weseek.co.jp/issues/111527
 const getClassNamesByEditorMode = (editorMode: EditorMode | undefined /* , isSidebar = false */): string[] => {
   const classNames: string[] = [];
   switch (editorMode) {
@@ -140,6 +141,7 @@ export const determineEditorModeByHash = (): EditorMode => {
 };
 
 // TODO: Enable `editing-sidebar` class somehow
+// https://redmine.weseek.co.jp/issues/111527
 type EditorModeUtils = {
   getClassNamesByEditorMode: (/* isEditingSidebar: boolean */) => string[],
 }
@@ -169,7 +171,8 @@ export const useEditorMode = (): SWRResponseWithUtils<EditorModeUtils, EditorMod
     return mutateOriginal(editorMode, shouldRevalidate);
   }, [isEditable, mutateOriginal]);
 
-  // TODO: Enable `editing-sidebar` class somehow
+  // TODO: Enable `editing-sidebar` class
+  // https://redmine.weseek.co.jp/issues/111527
   // construct getClassNamesByEditorMode method
   const getClassNames = useCallback((/* isEditingSidebar: boolean */) => {
     return getClassNamesByEditorMode(swrResponse.data /* , isEditingSidebar */);