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/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) {