mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: adapt <Image> & <Link> to next.js 13
This commit is contained in:
parent
377391234b
commit
73fd013e07
9 changed files with 83 additions and 81 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue