feat: make edit course page private

This commit is contained in:
swve 2023-04-09 00:07:59 +02:00
parent 46f13fac87
commit 8f8257b9e7
4 changed files with 28 additions and 32 deletions

View file

@ -1,12 +1,12 @@
"use client"; //todo: use server components
import Link from "next/link";
import React from "react";
import Layout from "../../components/UI/Layout";
import { Title } from "../../components/UI/Elements/Styles/Title";
import { deleteOrganizationFromBackend } from "@services/organizations/orgs";
import useSWR, { mutate } from "swr";
import { swrFetcher } from "@services/utils/requests";
import { getAPIUrl, getUriWithOrg } from "@services/config/config";
import AuthProvider from "@components/Security/AuthProvider";
const Organizations = () => {
const { data : organizations , error } = useSWR(`${getAPIUrl()}orgs/user/page/1/limit/10`, swrFetcher)
@ -18,6 +18,7 @@ const Organizations = () => {
return (
<>
<AuthProvider/>
<Title>
Your Organizations{" "}
<Link href={"/organizations/new"}>