mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Convert all mutate to mutateAsync.
This commit is contained in:
parent
980e4e6b41
commit
6faf16e9aa
32 changed files with 78 additions and 97 deletions
|
|
@ -19,14 +19,14 @@ export function SettingsButton() {
|
|||
const { cloudMode } = useConfig();
|
||||
|
||||
const handleAction = (id: Key) => {
|
||||
if (id === 'settings') {
|
||||
if (cloudMode) {
|
||||
window.location.href = `/settings`;
|
||||
return;
|
||||
}
|
||||
const url = `/${id}`;
|
||||
|
||||
if (cloudMode) {
|
||||
window.location.href = url;
|
||||
return;
|
||||
}
|
||||
|
||||
router.push(renderUrl(`/${id}`));
|
||||
router.push(renderUrl(url));
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue