prettier: format all files

This commit is contained in:
Hydra 2024-04-21 01:02:17 -03:00 committed by shadowtosser
parent 433e00bb50
commit 44583c4626
4 changed files with 8 additions and 6 deletions

View File

@ -2,8 +2,10 @@ import checkDiskSpace from "check-disk-space";
import { registerEvent } from "../register-event";
const getDiskFreeSpace = async (_event: Electron.IpcMainInvokeEvent, path: string) =>
checkDiskSpace(path);
const getDiskFreeSpace = async (
_event: Electron.IpcMainInvokeEvent,
path: string
) => checkDiskSpace(path);
registerEvent(getDiskFreeSpace, {
name: "getDiskFreeSpace",

View File

@ -99,7 +99,8 @@ contextBridge.exposeInMainWorld("electron", {
},
/* Hardware */
getDiskFreeSpace: (path: string) => ipcRenderer.invoke("getDiskFreeSpace", path),
getDiskFreeSpace: (path: string) =>
ipcRenderer.invoke("getDiskFreeSpace", path),
/* Misc */
getOrCacheImage: (url: string) => ipcRenderer.invoke("getOrCacheImage", url),

View File

@ -35,4 +35,4 @@ export const downloadsPathField = style({
export const hintText = style({
fontSize: 12,
color: vars.color.bodyText,
});
});

View File

@ -82,14 +82,13 @@ export function RepacksModal({
setDownloadStarting(false);
});
};
const getDiskFreeSpace = (path: string) => {
window.electron.getDiskFreeSpace(path).then((result) => {
setDiskFreeSpace(result);
});
};
return (
<Modal
visible={visible}