mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Use enableAvailability in EditListingWizard
This commit is contained in:
parent
72e20dfb56
commit
1d15936bae
1 changed files with 13 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ import { array, bool, func, number, object, oneOf, shape, string } from 'prop-ty
|
|||
import { compose } from 'redux';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import classNames from 'classnames';
|
||||
import config from '../../config';
|
||||
import { withViewport } from '../../util/contextHelpers';
|
||||
import {
|
||||
LISTING_PAGE_PARAM_TYPE_DRAFT,
|
||||
|
|
@ -24,9 +25,20 @@ import EditListingWizardTab, {
|
|||
} from './EditListingWizardTab';
|
||||
import css from './EditListingWizard.css';
|
||||
|
||||
// Show availability calendar only if environment variable availabilityEnabled is true
|
||||
const availabilityMaybe = config.enableAvailability ? [AVAILABILITY] : [];
|
||||
|
||||
// TODO: PHOTOS panel needs to be the last one since it currently contains PayoutDetailsForm modal
|
||||
// All the other panels can be reordered.
|
||||
export const TABS = [DESCRIPTION, FEATURES, POLICY, LOCATION, PRICING, AVAILABILITY, PHOTOS];
|
||||
export const TABS = [
|
||||
DESCRIPTION,
|
||||
FEATURES,
|
||||
POLICY,
|
||||
LOCATION,
|
||||
PRICING,
|
||||
...availabilityMaybe,
|
||||
PHOTOS,
|
||||
];
|
||||
|
||||
// Tabs are horizontal in small screens
|
||||
const MAX_HORIZONTAL_NAV_SCREEN_WIDTH = 1023;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue