diff --git a/src/pages/listing/BookingBar.tsx b/src/pages/listing/BookingBar.tsx new file mode 100644 index 00000000..15a4f958 --- /dev/null +++ b/src/pages/listing/BookingBar.tsx @@ -0,0 +1,18 @@ +import * as React from 'react'; +import { Button, Col, Row } from 'reactstrap'; + +import { Listing } from 'networking/listings'; +import { formatPrice } from 'utils/formatter'; + +const BookingBar = ({ + pricePerNightUsd +}: Listing) => ( + + + {formatPrice(pricePerNightUsd)} per night + + + +); + +export default BookingBar; \ No newline at end of file diff --git a/src/pages/listing/Listing.tsx b/src/pages/listing/Listing.tsx index 1d58ecb3..a346eee2 100644 --- a/src/pages/listing/Listing.tsx +++ b/src/pages/listing/Listing.tsx @@ -3,7 +3,6 @@ import { Query } from 'react-apollo'; import { Fade } from 'reactstrap'; import Footer from 'components/work/Footer'; -import Header from 'components/work/Header'; import Loading from 'shared/loading/Loading'; @@ -15,7 +14,6 @@ const PROFILE_IMAGE_PARAMETERS = { width: 300, height: 300 }; const Listing = ({ match }: RouterProps) => ( -
{({ loading, error, data }) => loading ? : error ?

Error: {error.message}

: diff --git a/src/pages/listing/ListingPage.tsx b/src/pages/listing/ListingPage.tsx index c6cddf69..b6941ddf 100644 --- a/src/pages/listing/ListingPage.tsx +++ b/src/pages/listing/ListingPage.tsx @@ -1,14 +1,31 @@ import * as React from 'react'; +import { Col, Container, Fade, Row } from 'reactstrap'; import ListingGallery from './ListingGallery'; import ListingInformation from './ListingInformation'; import BookingCard from './BookingCard'; +import BookingBar from './BookingBar'; import { Listing } from 'networking/listings'; -const ListingPage = (listing: Listing) => (<> - - - -); +const ListingPage = (listing: Listing) => ( + + + + + + + + +
+ +
+ +
+
+ +
+); export default ListingPage; diff --git a/src/styled/customStyles.scss b/src/styled/customStyles.scss index bbc6ad92..8656b707 100644 --- a/src/styled/customStyles.scss +++ b/src/styled/customStyles.scss @@ -54,11 +54,11 @@ $HEADER-HEIGHT: 4.125rem; .bee-top { top: 4.125rem; + z-index: 999; // Behind bootstrap overlays } .bee-search-map { height: calc(100vh - 11.25rem); - z-index: 999; // Behind bootstrap overlays } // add not-allowed cursor and no transform on disabled items