refactor code

This commit is contained in:
RaktimaNXG
2024-09-04 15:09:38 +05:30
parent 806894b24b
commit 4f2b0313de
@@ -371,12 +371,7 @@ function DriveBody(props) {
<div <div
data-tut={props.dataTutSeventh} data-tut={props.dataTutSeventh}
onClick={() => { onClick={() => {
if (rename) { if (!rename) {
inputRef.current.setSelectionRange(
inputRef.current.value.length,
inputRef.current.value.length
);
} else {
handleOnclikFolder(data); handleOnclikFolder(data);
} }
}} }}
@@ -439,12 +434,7 @@ function DriveBody(props) {
<div <div
data-tut={props.dataTutSixth} data-tut={props.dataTutSixth}
onClick={() => { onClick={() => {
if (rename) { if (!rename) {
inputRef.current.setSelectionRange(
inputRef.current.value.length,
inputRef.current.value.length
);
} else {
checkPdfStatus(data); checkPdfStatus(data);
} }
}} }}