Last change
on this file since 0f5aa27 was 07f4e8b, checked in by darsov2 <62809499+darsov2@…>, 8 months ago |
prefinal fixes
|
-
Property mode
set to
100644
|
File size:
797 bytes
|
Rev | Line | |
---|
[e6c2521] | 1 | import HotelReservationListing from "./HotelReservationListing";
|
---|
| 2 | import React from "react";
|
---|
| 3 | import useGet from "../Hooks/useGet";
|
---|
| 4 |
|
---|
| 5 | const PastRestaurantReservations = () => {
|
---|
| 6 |
|
---|
| 7 | const {data, isLoading, setData, getData, setChanged} = useGet('/restaurant/reservations/user/1/past')
|
---|
| 8 | !isLoading && console.log(data)
|
---|
| 9 |
|
---|
| 10 | return (
|
---|
| 11 | <>
|
---|
| 12 | {!isLoading && data.map((res) => {
|
---|
[07f4e8b] | 13 | console.log(res)
|
---|
| 14 | return (<HotelReservationListing setChanged={setChanged} past={true} data={res} type={'restaurant'}></HotelReservationListing>)
|
---|
[e6c2521] | 15 | })}
|
---|
| 16 | {(!isLoading && data.length === 0) && <h3 className={'my-5'}>Нема податоци за одбраните критериуми!</h3>}
|
---|
| 17 | </>
|
---|
| 18 | )
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | export default PastRestaurantReservations; |
---|
Note:
See
TracBrowser
for help on using the repository browser.