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