Pārlūkot izejas kodu

change var name and comment

yohei0125 3 gadi atpakaļ
vecāks
revīzija
c5b54a1cd4

+ 3 - 3
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -410,8 +410,8 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
   }, [data, isOpen, targetPathOrId]);
 
   // Rename process
-  // Whether to show the warning icon to indicate that the path needs fixing on the left side of a path name on pagetree
-  const shouldShowPathRecoveryWarningIcon = page.processData?.Rename != null ? page.processData.Rename.isProcessable : false;
+  // Warning icon that requires some action from the user
+  const shouldShowWarningIcon = page.processData?.Rename != null ? page.processData.Rename.isProcessable : false;
 
   return (
     <div
@@ -450,7 +450,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
           )
           : (
             <>
-              { shouldShowPathRecoveryWarningIcon && (
+              { shouldShowWarningIcon && (
                 <i className="fa fa-warning mr-2 text-warning"></i>
               )}
               <a href={`/${page._id}`} className="grw-pagetree-title-anchor flex-grow-1">