Prechádzať zdrojové kódy

remove unnecessary atom

Yuki Takei 5 mesiacov pred
rodič
commit
8f34782af0
1 zmenil súbory, kde vykonal 0 pridanie a 12 odobranie
  1. 0 12
      apps/app/src/states/page/internal-atoms.ts

+ 0 - 12
apps/app/src/states/page/internal-atoms.ts

@@ -84,18 +84,6 @@ export const isRevisionOutdatedAtom = atom((get) => {
   return remoteRevisionId !== currentRevisionId;
   return remoteRevisionId !== currentRevisionId;
 });
 });
 
 
-export const setPageStatusAtom = atom(
-  null,
-  (get, set, status: { isNotFound?: boolean; isLatestRevision?: boolean }) => {
-    if (status.isNotFound !== undefined) {
-      set(pageNotFoundAtom, status.isNotFound);
-    }
-    if (status.isLatestRevision !== undefined) {
-      set(latestRevisionAtom, status.isLatestRevision);
-    }
-  },
-);
-
 // Update atoms for template and remote revision data
 // Update atoms for template and remote revision data
 export const setTemplateContentAtom = atom(
 export const setTemplateContentAtom = atom(
   null,
   null,