dirk-cfx-react 1.1.76 → 1.1.77

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.cjs CHANGED
@@ -6583,6 +6583,11 @@ function DirkProvider({ children, overideResourceName, themeOverride }) {
6583
6583
  }, []);
6584
6584
  useNuiEvent("UPDATE_DIRK_LIB_SETTINGS", (data) => {
6585
6585
  if (!data || typeof data !== "object") return;
6586
+ const carriesOverrideFlag = Object.prototype.hasOwnProperty.call(data, "themeOverride");
6587
+ if (carriesOverrideFlag) {
6588
+ useSettings.setState(data);
6589
+ return;
6590
+ }
6586
6591
  const current = useSettings.getState();
6587
6592
  if (current.themeOverride) {
6588
6593
  const { primaryColor: _pc, primaryShade: _ps, customTheme: _ct, ...rest } = data;