From c2f2511b8742fd76df0af24d75d5bbcc108f36f1 Mon Sep 17 00:00:00 2001 From: Lorraxs Date: Fri, 9 Feb 2024 19:12:26 +0700 Subject: [PATCH] edit response message --- server/utils.lua | 2 +- web/src/App.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/utils.lua b/server/utils.lua index c7d6651..f792201 100644 --- a/server/utils.lua +++ b/server/utils.lua @@ -6,7 +6,7 @@ function Response(isSuccess, errorMessage, data) } end return { - status = "ok", + status = "success", data = data } end diff --git a/web/src/App.tsx b/web/src/App.tsx index 917ac4d..0f67f41 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -8,7 +8,7 @@ import { isEnvBrowser } from './utils/misc'; import { fetchNui } from './utils/fetchNui'; import { DefaultUISetting, ISettingContext, UISetting } from './types'; -const SettingContext = createContext(DefaultUISetting); +export const SettingContext = createContext(DefaultUISetting); function App() { const show = useSelector((state: RootState) => state.main.show);