refactor: run formatter

This commit is contained in:
Elias Schneider
2025-02-28 11:18:10 +01:00
parent e77edfd5d3
commit dc30f4f3c9
3 changed files with 18 additions and 15 deletions

View File

@@ -142,7 +142,7 @@ export class ConfigService extends EventEmitter {
const response: Config[] = []; const response: Config[] = [];
for (const variable of data) { for (const variable of data) {
response.push(await this.update(variable.key, variable.value)); response.push(await this.update(variable.key, variable.value));
} }
return response; return response;

View File

@@ -413,7 +413,7 @@ const Account = () => {
onConfirm: async () => { onConfirm: async () => {
await userService await userService
.removeCurrentUser() .removeCurrentUser()
.then(()=> window.location.reload()) .then(() => window.location.reload())
.catch(toast.axiosError); .catch(toast.axiosError);
}, },
}) })

View File

@@ -54,19 +54,22 @@ const Admin = () => {
]); ]);
useEffect(() => { useEffect(() => {
configService.isNewReleaseAvailable().then((isNewReleaseAvailable) => { configService
if (isNewReleaseAvailable) { .isNewReleaseAvailable()
setManagementOptions([ .then((isNewReleaseAvailable) => {
...managementOptions, if (isNewReleaseAvailable) {
{ setManagementOptions([
title: "Update", ...managementOptions,
icon: TbRefresh, {
route: title: "Update",
"https://github.com/stonith404/pingvin-share/releases/latest", icon: TbRefresh,
}, route:
]); "https://github.com/stonith404/pingvin-share/releases/latest",
} },
}).catch(); ]);
}
})
.catch();
}, []); }, []);
return ( return (