فهرست منبع

replace currentPagePath with inputText

kosei-n 2 سال پیش
والد
کامیت
235cd626f7
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      apps/app/src/components/PageHeader/PagePathHeader.tsx

+ 2 - 2
apps/app/src/components/PageHeader/PagePathHeader.tsx

@@ -22,7 +22,7 @@ export const PagePathHeader: FC<Props> = (props) => {
 
 
   const [isRenameInputShown, setRenameInputShown] = useState(false);
   const [isRenameInputShown, setRenameInputShown] = useState(false);
   const [isButtonsShown, setButtonShown] = useState(false);
   const [isButtonsShown, setButtonShown] = useState(false);
-  const [inputText, setInputText] = useState('');
+  const [inputText, setInputText] = useState(currentPagePath);
 
 
   const { data: editorMode } = useEditorMode();
   const { data: editorMode } = useEditorMode();
   const { data: PageSelectModalData, open: openPageSelectModal } = usePageSelectModal();
   const { data: PageSelectModalData, open: openPageSelectModal } = usePageSelectModal();
@@ -101,7 +101,7 @@ export const PagePathHeader: FC<Props> = (props) => {
             <TextInputForPageTitleAndPath
             <TextInputForPageTitleAndPath
               currentPage={currentPage}
               currentPage={currentPage}
               stateHandler={stateHandler}
               stateHandler={stateHandler}
-              inputValue={currentPagePath}
+              inputValue={inputText}
               CustomComponent={PagePath}
               CustomComponent={PagePath}
               handleInputChange={handleInputChange}
               handleInputChange={handleInputChange}
             />
             />