style: update everything to biome conventions

This commit is contained in:
DanCodes committed 2024-01-09 13:50:20 +00:00
1 parent 96350fa793
commit c0b9d93880
88 files changed
+491 -708

No files matched your search

+19 -19
View File
@@ -2,25 +2,25 @@ import { useState } from "react";
import useKonami from "react-use-konami";
export const useKonamiEasterEgg = () => {
const [easterEgg, setEasterEgg] = useState(false);
const sixtyNine = () => {
setEasterEgg(true);
};
const [easterEgg, setEasterEgg] = useState(false);
const sixtyNine = () => {
setEasterEgg(true);
};
useKonami(sixtyNine, {
code: [
"ArrowUp",
"ArrowUp",
"ArrowDown",
"ArrowDown",
"ArrowLeft",
"ArrowRight",
"ArrowLeft",
"ArrowRight",
"b",
"a",
],
});
useKonami(sixtyNine, {
code: [
"ArrowUp",
"ArrowUp",
"ArrowDown",
"ArrowDown",
"ArrowLeft",
"ArrowRight",
"ArrowLeft",
"ArrowRight",
"b",
"a",
],
});
return [easterEgg, setEasterEgg] as const;
return [easterEgg, setEasterEgg] as const;
};
+4 -4
View File
@@ -1,8 +1,8 @@
import { relaunch } from "@tauri-apps/api/process";
export const handleRelaunch = async (_event: unknown, reason?: string) => {
if (reason && reason === "backdropClick") {
return;
}
await relaunch();
if (reason && reason === "backdropClick") {
return;
}
await relaunch();
};