mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
refactor code
This commit is contained in:
@@ -371,12 +371,7 @@ function DriveBody(props) {
|
||||
<div
|
||||
data-tut={props.dataTutSeventh}
|
||||
onClick={() => {
|
||||
if (rename) {
|
||||
inputRef.current.setSelectionRange(
|
||||
inputRef.current.value.length,
|
||||
inputRef.current.value.length
|
||||
);
|
||||
} else {
|
||||
if (!rename) {
|
||||
handleOnclikFolder(data);
|
||||
}
|
||||
}}
|
||||
@@ -439,12 +434,7 @@ function DriveBody(props) {
|
||||
<div
|
||||
data-tut={props.dataTutSixth}
|
||||
onClick={() => {
|
||||
if (rename) {
|
||||
inputRef.current.setSelectionRange(
|
||||
inputRef.current.value.length,
|
||||
inputRef.current.value.length
|
||||
);
|
||||
} else {
|
||||
if (!rename) {
|
||||
checkPdfStatus(data);
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user