Browse Source

remove unnecessary

WNomunomu 2 years ago
parent
commit
a986c0da48

+ 1 - 5
apps/app/src/components/PageHeader/TextInputForPageTitleAndPath.tsx

@@ -25,7 +25,7 @@ type Props = {
 
 
 export const TextInputForPageTitleAndPath: FC<Props> = (props) => {
 export const TextInputForPageTitleAndPath: FC<Props> = (props) => {
   const {
   const {
-    currentPagePath, currentPage, stateHandler, inputValue, CustomComponent
+    currentPagePath, currentPage, stateHandler, inputValue, CustomComponent,
   } = props;
   } = props;
 
 
   const { t } = useTranslation();
   const { t } = useTranslation();
@@ -34,10 +34,6 @@ export const TextInputForPageTitleAndPath: FC<Props> = (props) => {
 
 
   const { isRenameInputShown, setRenameInputShown } = stateHandler;
   const { isRenameInputShown, setRenameInputShown } = stateHandler;
 
 
-  const onClickInputValueHandler = () => {
-    setRenameInputShown(true);
-  };
-
   const page = currentPage;
   const page = currentPage;
 
 
   const onRenamed = useCallback((fromPath: string | undefined, toPath: string) => {
   const onRenamed = useCallback((fromPath: string | undefined, toPath: string) => {