Compat with latest JS lib

This commit is contained in:
Sacha Weatherstone
2023-01-19 19:46:29 +10:00
parent 8ddb900f81
commit d538ba5a9d
51 changed files with 800 additions and 1027 deletions
+2 -8
View File
@@ -37,9 +37,7 @@ export const ShutdownDialog = ({
icon: <ClockIcon className="w-4" />,
action() {
connection
?.shutdown({
time: time * 60
})
?.shutdown(time * 60)
.then(() => setShutdownDialogOpen(false));
}
}}
@@ -48,11 +46,7 @@ export const ShutdownDialog = ({
className="w-24"
iconBefore={<PowerIcon className="w-4" />}
onClick={() => {
connection
?.shutdown({
time: 0
})
.then(() => setShutdownDialogOpen(false));
connection?.shutdown(2).then(() => setShutdownDialogOpen(false));
}}
>
Now