dirk-cfx-react 1.0.54 → 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 -0
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +12 -0
- 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 -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 +17 -0
- 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 -0
- package/dist/providers/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2301,6 +2301,17 @@ var useSettings = create((set) => ({
|
|
|
2301
2301
|
itemImgPath: "https://assets.dirkcfx.com/items/",
|
|
2302
2302
|
customTheme: {}
|
|
2303
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
|
+
});
|
|
2304
2315
|
function DirkProvider(props) {
|
|
2305
2316
|
const primaryColor = useSettings((data) => data.primaryColor);
|
|
2306
2317
|
const primaryShade = useSettings((data) => data.primaryShade);
|