Skip to content

Commit

Permalink
Add price per night and reservation button to DetailsPage
Browse files Browse the repository at this point in the history
  • Loading branch information
George7h committed Mar 5, 2024
1 parent bb4ecd8 commit 158d83f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Components/DetailsPage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import PropTypes from 'prop-types';
import { useParams } from 'react-router-dom';
import { useParams, Link } from 'react-router-dom';
import { fetchDetailsPage } from '../Redux/places/detailsPageSlice';
import '../Placelist.css';
import '../DetailsPage.css';
Expand Down Expand Up @@ -52,6 +52,13 @@ function DetailsPage() {
Address:
{detailsPage.address}
</p>
<p>
Price per night:$
{detailsPage.pricepernight}
</p>
<Link to="/layout/addReservation">
<button type="button">Add Reservation</button>
</Link>
</div>
</div>
</div>
Expand Down

0 comments on commit 158d83f

Please sign in to comment.