feat: refactors + various UI changes

This commit is contained in:
swve 2023-06-22 18:26:25 +02:00
parent d5ad9e2f2f
commit f6d50627bd
69 changed files with 138 additions and 130 deletions

View file

@ -1,7 +1,6 @@
"use client"; //todo: use server components
import Link from "next/link";
import React from "react";
import { Title } from "../../components/UI/Elements/Styles/Title";
import { deleteOrganizationFromBackend } from "@services/organizations/orgs";
import useSWR, { mutate } from "swr";
import { swrFetcher } from "@services/utils/ts/requests";
@ -19,14 +18,14 @@ const Organizations = () => {
return (
<>
<AuthProvider />
<Title>
<div className="font-bold text-lg">
Your Organizations{" "}
<Link href="/organizations/new">
<button className="bg-blue-500 text-white px-2 py-1 rounded-md hover:bg-blue-600 focus:outline-none">
+
</button>
</Link>
</Title>
</div>
<hr />
{error && <p className="text-red-500">Failed to load</p>}