Skip to content

Commit

Permalink
revert init state for rates
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Mar 20, 2019
1 parent 1fc5d39 commit 14cbcb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const shippingFormAttributeValidationMiddleware = store => next => action => {
if (
action.type !== SETTINGS_ACTIONS.EDIT ||
(action.field !== SETTINGS_FIELDS.EDIT_SHIPPING_PRODUCT &&
action.field !== SETTINGS_FIELDS.EDIT_SHIPPING_RATE_NAME &&
action.field !== SETTINGS_FIELDS.EDIT_SHIPPING_PROFILE &&
action.field !== SETTINGS_FIELDS.EDIT_SHIPPING_SITE &&
action.field !== SETTINGS_FIELDS.EDIT_SHIPPING_USERNAME &&
Expand Down
32 changes: 1 addition & 31 deletions packages/frontend/src/utils/definitions/profiles/rates.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,7 @@ export const rateEntry = PropTypes.shape({
selectedRate: rate,
});

// export const initialShippingRatesState = [];

// temporarilyy put some data to adjust UI styling...
export const initialShippingRatesState = [
{
site: {
name: 'Kith',
url: 'https://kith.com',
},
rates: [
{
name: '5-7 Business Days',
rate: 'shopify-UPS%20GROUND%20(5-7%20business%20days)-10.00',
},
],
selectedRate: null,
},
{
site: {
name: '12 AM RUN',
url: 'https://12amrun.com',
},
rates: [
{
name: 'Small Goods Shipping',
rate: 'shopify-Small%20Goods%20Shipping-7.00',
},
],
selectedRate: null,
},
];
export const initialShippingRatesState = [];

const rates = PropTypes.arrayOf(rateEntry);

Expand Down

0 comments on commit 14cbcb0

Please sign in to comment.