mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-17 17:30:17 -04:00
updated client paths with new table props
This commit is contained in:
parent
9653bef68a
commit
0758dbec75
|
@ -38,7 +38,7 @@ export default function Page() {
|
|||
<div className="min-h-screen flex flex-col">
|
||||
{/* icon + title */}
|
||||
<PageLayout title="Resources" icon={<BookmarkIcon />}>
|
||||
<ResourceTable resources={resources} />
|
||||
<ResourceTable data={resources} setData={setResources} />
|
||||
</PageLayout>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -9,7 +9,7 @@ import { ClipboardIcon } from "@heroicons/react/24/solid";
|
|||
import { useEffect, useState } from "react";
|
||||
|
||||
export default function Page() {
|
||||
const [services, setUsers] = useState<Service[]>([]);
|
||||
const [services, setServices] = useState<Service[]>([]);
|
||||
|
||||
useEffect(() => {
|
||||
async function getServices() {
|
||||
|
@ -27,7 +27,7 @@ export default function Page() {
|
|||
);
|
||||
|
||||
const servicesAPI: Service[] = await serviceListData.json();
|
||||
setUsers(servicesAPI);
|
||||
setServices(servicesAPI);
|
||||
}
|
||||
|
||||
getServices();
|
||||
|
@ -37,7 +37,7 @@ export default function Page() {
|
|||
<div className="min-h-screen flex flex-col">
|
||||
{/* icon + title */}
|
||||
<PageLayout title="Services" icon={<ClipboardIcon />}>
|
||||
<ServiceTable services={services} />
|
||||
<ServiceTable data={services} setData={setServices} />
|
||||
</PageLayout>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user