mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-28 04:24:57 +02:00
refactor code
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user