mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add authentication only component
This commit is contained in:
parent
924656ce13
commit
0c6ec386c2
2 changed files with 45 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import Link from "next/link";
|
||||
import React from "react";
|
||||
import AuthenticatedOnly from "../../components/security/AuthenticatedOnly";
|
||||
import Layout from "../../components/ui/layout";
|
||||
import { Title } from "../../components/ui/styles/title";
|
||||
import { deleteOrganizationFromBackend, getUserOrganizations } from "../../services/orgs";
|
||||
|
|
@ -32,6 +33,7 @@ const Organizations = () => {
|
|||
return (
|
||||
|
||||
<Layout>
|
||||
<AuthenticatedOnly>
|
||||
<Title>
|
||||
Your Organizations{" "}
|
||||
<Link href={"/organizations/new"}>
|
||||
|
|
@ -59,6 +61,7 @@ const Organizations = () => {
|
|||
))}
|
||||
</div>
|
||||
)}
|
||||
</AuthenticatedOnly>
|
||||
|
||||
</Layout>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue