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