refactor: run formatter

This commit is contained in:
Elias Schneider
2024-11-26 20:58:32 +01:00
parent e86f93830b
commit 3df80acff9
6 changed files with 19 additions and 19 deletions

View File

@@ -26,7 +26,7 @@ const showEnableTotpModal = (
qrCode: string;
secret: string;
password: string;
}
},
) => {
const t = translateOutsideContext();
return modals.openModal({

View File

@@ -89,7 +89,7 @@ const ManageShareTable = ({
onClick={() => {
if (window.isSecureContext) {
clipboard.copy(
`${window.location.origin}/s/${share.id}`
`${window.location.origin}/s/${share.id}`,
);
toast.success(t("common.notify.copied-link"));
} else {

View File

@@ -13,7 +13,7 @@ function CopyTextField(props: { link: string }) {
const [checkState, setCheckState] = useState(false);
const [textClicked, setTextClicked] = useState(false);
const timerRef = useRef<number | ReturnType<typeof setTimeout> | undefined>(
undefined
undefined,
);
const copyLink = () => {