Browse Source

fix lint errors

Yuki Takei 4 years ago
parent
commit
1f92794418

+ 1 - 2
packages/app/src/components/InAppNotification/PageNotification/PageModelNotification.tsx

@@ -24,7 +24,6 @@ const PageModelNotification: ForwardRefRenderFunction<IInAppNotificationOpenable
   } = props;
   } = props;
 
 
   const snapshot = parseSnapshot(notification.snapshot);
   const snapshot = parseSnapshot(notification.snapshot);
-  const pagePath = { path: snapshot.path };
 
 
   // publish open()
   // publish open()
   useImperativeHandle(ref, () => ({
   useImperativeHandle(ref, () => ({
@@ -42,7 +41,7 @@ const PageModelNotification: ForwardRefRenderFunction<IInAppNotificationOpenable
   return (
   return (
     <div className="p-2">
     <div className="p-2">
       <div>
       <div>
-        <b>{actionUsers}</b> {actionMsg} <PagePathLabel page={pagePath} />
+        <b>{actionUsers}</b> {actionMsg} <PagePathLabel path={snapshot.path} />
       </div>
       </div>
       <i className={`${actionIcon} mr-2`} />
       <i className={`${actionIcon} mr-2`} />
       <FormattedDistanceDate
       <FormattedDistanceDate

+ 1 - 1
packages/app/src/components/SearchPage/SearchResultContentSubNavigation.tsx

@@ -51,7 +51,7 @@ const SearchResultContentSubNavigation: FC<Props> = (props : Props) => {
             revisionId={revisionId}
             revisionId={revisionId}
             path={path}
             path={path}
             isDeletable={isPageDeletable}
             isDeletable={isPageDeletable}
-            // isAbleToDeleteCompletely={}
+            isAbleToDeleteCompletely={false}
             willShowPageManagement={isAbleToShowPageManagement}
             willShowPageManagement={isAbleToShowPageManagement}
           >
           >
           </SubNavButtons>
           </SubNavButtons>