From 813b0a64eeced197fb607dec3a02fb74c07815ef Mon Sep 17 00:00:00 2001 From: Aldrin Jenson Date: Fri, 8 Sep 2023 19:50:15 +0530 Subject: [PATCH] refactoring --- src/pages/Query/QueryCodeEditor.tsx | 9 +++++++++ src/utils/index.ts | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/Query/QueryCodeEditor.tsx b/src/pages/Query/QueryCodeEditor.tsx index 09d44153..832aa3b4 100644 --- a/src/pages/Query/QueryCodeEditor.tsx +++ b/src/pages/Query/QueryCodeEditor.tsx @@ -112,6 +112,15 @@ const QueryCodeEditor: FC = () => { const query = sanitseSqlString(inputQuery); resetData(); + notifications.show({ + id: 'load-data', + loading: true, + color: '#545BEB', + title: 'Running Query', + message: 'Data will be loaded.', + autoClose: false, + withCloseButton: false, + }); let LogQuery = { startTime: subLogQuery.get().startTime, endTime: subLogQuery.get().endTime, diff --git a/src/utils/index.ts b/src/utils/index.ts index ed3e529d..3b739354 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,4 +1,3 @@ -import { Field } from '@/@types/parseable/dataType'; import dayjs from 'dayjs'; export const wait = (sec = 1) => new Promise((res) => setTimeout(res, sec * 1000));