added <Loader> component

This commit is contained in:
Peer Richelsen committed 2021-08-02 22:57:58 +02:00
1 parent 71fc0ba437
commit e5550b72ba
9 files changed
+24 -17

No files matched your search

+2 -1
View File
@@ -5,6 +5,7 @@ import Shell from "../../components/Shell";
import { useState } from "react";
import { useRouter } from "next/router";
import { useSession, getSession } from "next-auth/client";
import Loader from '@components/Loader';
export default function integration(props) {
const router = useRouter();
@@ -12,7 +13,7 @@ export default function integration(props) {
const [showAPIKey, setShowAPIKey] = useState(false);
if (loading) {
return <div className="loader"><span className="loader-inner"></span></div>;
return <Loader/>;
}
function toggleShowAPIKey() {
+2 -3
View File
@@ -13,6 +13,7 @@ import {
} from "@heroicons/react/solid";
import { InformationCircleIcon } from "@heroicons/react/outline";
import { Switch } from "@headlessui/react";
import Loader from '@components/Loader';
export default function Home({ integrations }) {
const [session, loading] = useSession();
@@ -88,9 +89,7 @@ export default function Home({ integrations }) {
if (loading) {
return (
<div className="loader">
<span className="loader-inner"></span>
</div>
<Loader/>
);
}