Loose ends

This commit is contained in:
Manav Rathi
2024-10-10 16:13:34 +05:30
parent e822d327e4
commit 24dc72eee3
3 changed files with 3 additions and 1 deletions

View File

@@ -403,7 +403,7 @@ const confirmDisableMapsDialogAttributes = (
): MiniDialogAttributes => ({
title: t("DISABLE_MAPS"),
message: <Trans i18nKey={"DISABLE_MAP_DESCRIPTION"} />,
continue: { text: t("disable"), action: onConfirm },
continue: { text: t("disable"), color: "critical", action: onConfirm },
});
const FileInfoSidebar = styled((props: DialogProps) => (

View File

@@ -213,6 +213,7 @@ export default function App({ Component, pageProps }: AppProps) {
setLocalMapEnabled(enabled);
setMapEnabled(enabled);
} catch (e) {
// TODO: Handle the error here.
log.error("Error while updating mapEnabled", e);
}
};

View File

@@ -55,6 +55,7 @@ export const errorDialogAttributes = (
icon: <ErrorOutline />,
message,
continue: { color: "critical" },
cancel: false,
};
};