chore: adapt <Image> & <Link> to next.js 13

This commit is contained in:
swve 2022-12-14 18:22:24 +01:00
parent 377391234b
commit 73fd013e07
9 changed files with 83 additions and 81 deletions

View file

@ -30,14 +30,13 @@ const Organizations = () => {
return (
<Layout>
<Title>
Your Organizations{" "}
<Link href={"/organizations/new"}>
<a>
<button>+</button>
</a>
<button>+</button>
</Link>
</Title>
<hr />
@ -48,9 +47,9 @@ const Organizations = () => {
{userOrganizations.map((org: any) => (
<div key={org.org_id}>
<Link href={`/org/${org.slug}`}>
<a>
<h3>{org.name}</h3>
</a>
<h3>{org.name}</h3>
</Link>
<button onClick={() => deleteOrganization(org.org_id)}>
Delete