dirk-cfx-react 1.1.38 → 1.1.39
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 +13 -0
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +13 -0
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/index.cjs +38 -21
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +38 -21
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/providers/index.cjs +43 -26
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.js +43 -26
- package/dist/providers/index.js.map +1 -1
- package/dist/styles/notify.css +0 -118
- package/dist/utils/index.cjs +11 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +11 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles/notify.css +0 -118
package/dist/index.js
CHANGED
|
@@ -220,6 +220,7 @@ var openLink = (url) => {
|
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
var useSettings = create(() => ({
|
|
223
|
+
currency: "$",
|
|
223
224
|
game: "fivem",
|
|
224
225
|
primaryColor: "dirk",
|
|
225
226
|
primaryShade: 9,
|
|
@@ -237,6 +238,16 @@ var useSettings = create(() => ({
|
|
|
237
238
|
"#0b33ff"
|
|
238
239
|
]
|
|
239
240
|
}));
|
|
241
|
+
registerInitialFetch("GET_SETTINGS", void 0).then((data) => {
|
|
242
|
+
console.log("Fetched settings:", data);
|
|
243
|
+
if (!data) {
|
|
244
|
+
console.warn("No settings data received from GET_SETTINGS fetch.");
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
useSettings.setState({
|
|
248
|
+
...data
|
|
249
|
+
});
|
|
250
|
+
});
|
|
240
251
|
|
|
241
252
|
// src/utils/fetchNui.ts
|
|
242
253
|
async function fetchNui(eventName, data, mockData) {
|