@timardex/cluemart-shared 2.0.13 → 2.0.14

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.
@@ -42,7 +42,7 @@ import {
42
42
  vendorStallSize,
43
43
  vendorStartDateFields,
44
44
  vendorTable
45
- } from "../chunk-AUWZYZK5.mjs";
45
+ } from "../chunk-ZUXHEXJU.mjs";
46
46
  import {
47
47
  availableCategories,
48
48
  categoryColors
@@ -4306,6 +4306,10 @@ var import_client65 = require("@apollo/client");
4306
4306
  var APP_SETTINGS_FIELDS_FRAGMENT = import_client65.gql`
4307
4307
  fragment AppSettingsFields on AppSettingsType {
4308
4308
  _id
4309
+ adSettings {
4310
+ mobileDisplayEnabled
4311
+ webDisplayEnabled
4312
+ }
4309
4313
  appVersion
4310
4314
  createdAt
4311
4315
  isOfflineMode
@@ -4342,9 +4346,12 @@ var useUpdateGoogleImportedMarkets = () => {
4342
4346
 
4343
4347
  // src/graphql/hooks/appSettings/hooksQuery.ts
4344
4348
  var import_client67 = require("@apollo/client");
4345
- var useGetAppSettings = () => {
4349
+ var useGetAppSettings = ({
4350
+ skip = false
4351
+ } = {}) => {
4346
4352
  const { loading, error, data, refetch } = (0, import_client67.useQuery)(GET_APP_SETTINGS, {
4347
- fetchPolicy: "network-only"
4353
+ fetchPolicy: "network-only",
4354
+ skip
4348
4355
  });
4349
4356
  const appSettings = data?.appSettings || null;
4350
4357
  return { appSettings, error, loading, refetch };