dirk-cfx-react 1.0.53 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +12 -1
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +12 -1
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/index.cjs +35 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +35 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/providers/index.cjs +17 -1
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.d.cts +4 -3
- package/dist/providers/index.d.ts +4 -3
- package/dist/providers/index.js +17 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/utils/index.cjs +0 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -225,7 +225,6 @@ async function fetchNui(eventName, data, mockData) {
|
|
|
225
225
|
},
|
|
226
226
|
body: JSON.stringify(data)
|
|
227
227
|
};
|
|
228
|
-
console.log(mockData);
|
|
229
228
|
if (isEnvBrowser() && mockData) return mockData;
|
|
230
229
|
if (isEnvBrowser() && mockData === void 0) {
|
|
231
230
|
console.warn(
|
|
@@ -2302,6 +2301,17 @@ var useSettings = create((set) => ({
|
|
|
2302
2301
|
itemImgPath: "https://assets.dirkcfx.com/items/",
|
|
2303
2302
|
customTheme: {}
|
|
2304
2303
|
}));
|
|
2304
|
+
registerInitialFetch("GET_SETTINGS", void 0, {
|
|
2305
|
+
game: "fivem",
|
|
2306
|
+
primaryColor: "dirk",
|
|
2307
|
+
primaryShade: 9,
|
|
2308
|
+
itemImgPath: "https://assets.dirkcfx.com/items/",
|
|
2309
|
+
customTheme: {}
|
|
2310
|
+
}).then((data) => {
|
|
2311
|
+
useSettings.setState({
|
|
2312
|
+
...data
|
|
2313
|
+
});
|
|
2314
|
+
});
|
|
2305
2315
|
function DirkProvider(props) {
|
|
2306
2316
|
const primaryColor = useSettings((data) => data.primaryColor);
|
|
2307
2317
|
const primaryShade = useSettings((data) => data.primaryShade);
|