From 2b21ba43cd36a729df9245c3a0f0c176424c36a1 Mon Sep 17 00:00:00 2001 From: ajnart Date: Fri, 6 Jan 2023 11:20:14 +0900 Subject: [PATCH] Fix usage of console.log() statement --- src/components/Config/LoadConfig.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Config/LoadConfig.tsx b/src/components/Config/LoadConfig.tsx index 0f40c62ff..6f374bcd6 100644 --- a/src/components/Config/LoadConfig.tsx +++ b/src/components/Config/LoadConfig.tsx @@ -2,6 +2,7 @@ import { Group, Stack, Text, Title, useMantineTheme } from '@mantine/core'; import { Dropzone } from '@mantine/dropzone'; import { showNotification } from '@mantine/notifications'; import { IconCheck as Check, IconPhoto, IconUpload, IconX, IconX as X } from '@tabler/icons'; +import Consola from 'consola'; import { setCookie } from 'cookies-next'; import { useTranslation } from 'next-i18next'; import { useConfigStore } from '../../config/store'; @@ -36,7 +37,7 @@ export const LoadConfigComponent = () => { let newConfig: ConfigType = JSON.parse(fileText); if (!newConfig.schemaVersion) { - console.warn( + Consola.warn( 'a legacy configuration schema was deteced and migrated to the current schema' ); const oldConfig = JSON.parse(fileText) as Config;