Skip to content

Commit

Permalink
Updates storybook as we were overwriting state
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury-hanser committed Jul 7, 2021
1 parent 96ede0a commit d2fad86
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions _dev/.storybook/mock/product-feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,11 @@ export const productFeed = {
export const productFeedEnabled = {
...productFeed,
status: {
...productFeed.status,
enabled: true,
}
}

export const productFeedDisabled = {
...productFeed,
status: {
enabled: false,
}
}

export const productFeedIsConfigured = {
...productFeedEnabled,
isConfigured: true,
Expand All @@ -51,13 +45,13 @@ export const productFeedIsConfigured = {
export const productFeedMissingFields = {
...productFeedIsConfigured,
settings: {
...productFeedIsConfigured.settings,
targetCountries: [],
attributeMapping: {},
autoImportShippingSettings: false,
}
}


export const productFeedIsConfiguredOnce = {
...productFeedIsConfigured,
isConfiguredOnce: true,
Expand All @@ -66,6 +60,7 @@ export const productFeedIsConfiguredOnce = {
export const productFeedStatusSyncFailed = {
...productFeedEnabled,
status: {
...productFeedEnabled.status,
failedSyncs: ['fail'],
}
}
Expand Down

0 comments on commit d2fad86

Please sign in to comment.