Compare commits
No commits in common. "283d90c707b6a6c3b919d140c3ca2a04eb9c8c53" and "eddb1cab376e6c24a12de753e0e2f664a626f074" have entirely different histories.
283d90c707
...
eddb1cab37
@ -6,14 +6,13 @@ import React, { useState } from 'react';
|
|||||||
import { TableArrangement, Guest } from '@/app/lib/definitions';
|
import { TableArrangement, Guest } from '@/app/lib/definitions';
|
||||||
import { lusitana } from '@/app/ui/fonts';
|
import { lusitana } from '@/app/ui/fonts';
|
||||||
import { Table } from '@/app/ui/components/table';
|
import { Table } from '@/app/ui/components/table';
|
||||||
import { getSlug } from '@/app/lib/utils';
|
|
||||||
|
|
||||||
export default function Arrangement({ id }: { id: string }) {
|
export default function Arrangement({ id }: { id: string }) {
|
||||||
|
|
||||||
const [tables, setTables] = useState<Array<TableArrangement>>([]);
|
const [tables, setTables] = useState<Array<TableArrangement>>([]);
|
||||||
|
|
||||||
function loadTables() {
|
function loadTables() {
|
||||||
fetch(`/api/${getSlug()}/tables_arrangements/${id}`)
|
fetch(`/api/tables_arrangements/${id}`)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
setTables(data.map((record: any) => {
|
setTables(data.map((record: any) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user