added <Loader> component
This commit is contained in:
1 parent
71fc0ba437
commit
e5550b72ba
9 files changed
+24
-17
No files matched your search
@@ -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() {
|
||||
|
||||
@@ -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/>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user