Last active
April 22, 2021 21:11
-
-
Save deconstructionalism/b00e19d5a918eeea1a967b130c6bcaf0 to your computer and use it in GitHub Desktop.
LocationPage.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import MetaTags from 'react-meta-tags' | |
import PropTypes from 'prop-types' | |
import MajorFeatures from '../organisms/MajorFeatures.js' | |
import LocationAddress from '../organisms/LocationAddress.js' | |
import LocationAnnouncements from '../organisms/LocationAnnouncements.js' | |
import LocationHero from '../organisms/LocationHero.js' | |
import LocationUnitInfo from '../organisms/LocationUnitInfo.js' | |
import LocationGeneralInfo from '../organisms/LocationGeneralInfo.js' | |
import PhoneNumber from '../organisms/PhoneNumber.js' | |
// import LocationStorageUnits from '../organisms/LocationStorageUnits.js' | |
const LocationPage = ({ locationData }) => { | |
// DESTRUCTURE VALUES | |
const { | |
addressBlade, | |
announcementsBlade, | |
featuresBlade, | |
generalInfoBlade, | |
heroBlade, | |
unitInfoBlade, | |
metaDescription, | |
metaKeywords, | |
phoneNumbersBlade, | |
// storageUnitsBlade, | |
wssLocationData | |
} = locationData | |
// LOGIC | |
return ( | |
<React.Fragment> | |
<MetaTags> | |
<meta | |
name="description" | |
content={ metaDescription } | |
/> | |
<meta | |
name="keywords" | |
content={ metaKeywords } | |
/> | |
</MetaTags> | |
<LocationHero | |
data={ heroBlade } | |
isCompact={ true } | |
locationData={ wssLocationData } | |
/> | |
<LocationAnnouncements data={ announcementsBlade } /> | |
<LocationAddress | |
data={ addressBlade } | |
locationData={ wssLocationData } | |
/> | |
<MajorFeatures data={ featuresBlade } /> | |
<LocationUnitInfo data={ unitInfoBlade } /> | |
{/* <LocationStorageUnits | |
data={ storageUnitsBlade } | |
locationData={ wssLocationData } | |
/> */} | |
<LocationGeneralInfo data={ generalInfoBlade } /> | |
<PhoneNumber data={ phoneNumbersBlade } /> | |
</React.Fragment> | |
) | |
} | |
// DEFAULT PROPS | |
LocationPage.defaultProps = { | |
locationData: {} | |
} | |
// PROP TYPES | |
LocationPage.propTypes = { | |
locationData: PropTypes.object | |
} | |
export default LocationPage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment