edit response message

This commit is contained in:
Lorraxs 2024-02-09 19:12:26 +07:00
parent 2b8448e1be
commit c2f2511b87
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ function Response(isSuccess, errorMessage, data)
} }
end end
return { return {
status = "ok", status = "success",
data = data data = data
} }
end end

View File

@ -8,7 +8,7 @@ import { isEnvBrowser } from './utils/misc';
import { fetchNui } from './utils/fetchNui'; import { fetchNui } from './utils/fetchNui';
import { DefaultUISetting, ISettingContext, UISetting } from './types'; import { DefaultUISetting, ISettingContext, UISetting } from './types';
const SettingContext = createContext<ISettingContext>(DefaultUISetting); export const SettingContext = createContext<ISettingContext>(DefaultUISetting);
function App() { function App() {
const show = useSelector((state: RootState) => state.main.show); const show = useSelector((state: RootState) => state.main.show);