mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
prettier: format all files
This commit is contained in:
parent
934fb1145e
commit
149c07c89d
@ -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",
|
||||
|
@ -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),
|
||||
|
@ -35,4 +35,4 @@ export const downloadsPathField = style({
|
||||
export const hintText = style({
|
||||
fontSize: 12,
|
||||
color: vars.color.bodyText,
|
||||
});
|
||||
});
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user