Last change
on this file since e6c2521 was e6c2521, checked in by darsov2 <62809499+darsov2@…>, 9 months ago |
images upload/download impl, other fixes
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[e6c2521] | 1 | import React from "react";
|
---|
| 2 | import Form from "react-bootstrap/Form";
|
---|
| 3 | import FaHotel from "react-icons/fa";
|
---|
| 4 | import {Button} from "react-bootstrap";
|
---|
| 5 | import useCreate from "../Hooks/useCreate";
|
---|
| 6 | import TableRow from "./TableRow";
|
---|
| 7 |
|
---|
| 8 | const TablesTable = (props) => {
|
---|
| 9 |
|
---|
| 10 | console.log(props)
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | return (
|
---|
| 14 | <>
|
---|
| 15 | <table className="m-auto table table-hover table-responsive">
|
---|
| 16 | <thead>
|
---|
| 17 | <tr>
|
---|
| 18 | <th scope="col">Тип на маса</th>
|
---|
| 19 | <th scope="col">Колку единици?</th>
|
---|
| 20 | <th scope="col"></th>
|
---|
| 21 | </tr>
|
---|
| 22 | </thead>
|
---|
| 23 | <tbody>
|
---|
| 24 | {Array.from(new Set(props.data.map(x => x.restaurantTable))).map((table) => {
|
---|
| 25 | return (
|
---|
| 26 | <>
|
---|
| 27 | <TableRow
|
---|
| 28 | params={props.params}
|
---|
| 29 | availableId={props.data.filter(x => x.restaurantTable.tableId === table.tableId).
|
---|
| 30 | map(x => x.restaurantAvailibleId)[0]}
|
---|
| 31 | data={props.data} table={table} from={props.from} to={props.to}/>
|
---|
| 32 | </>
|
---|
| 33 | );
|
---|
| 34 | })}
|
---|
| 35 | </tbody>
|
---|
| 36 | </table>
|
---|
| 37 | </>
|
---|
| 38 | );
|
---|
| 39 | };
|
---|
| 40 |
|
---|
| 41 | export default TablesTable;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.