Your day ends at {convertMinsToHrsMins(user.endTime)}
diff --git a/pages/event-types/index.tsx b/pages/event-types/index.tsx
index d3ded115..00cf1d89 100644
--- a/pages/event-types/index.tsx
+++ b/pages/event-types/index.tsx
@@ -20,6 +20,7 @@ import {
PlusIcon,
UserIcon,
} from "@heroicons/react/solid";
+import Loader from '@components/Loader';
export default function Availability({ user, types }) {
const [session, loading] = useSession();
@@ -65,7 +66,7 @@ export default function Availability({ user, types }) {
}
if (loading) {
- return
;
+ return
;
}
return (
diff --git a/pages/index.tsx b/pages/index.tsx
index 894d14ea..9901e8a0 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -1,3 +1,4 @@
+import Loader from "@components/Loader";
import { useRouter } from "next/router";
function RedirectPage() {
@@ -6,6 +7,9 @@ function RedirectPage() {
router.push("/event-types");
return;
}
+ return (
+
+ );
}
RedirectPage.getInitialProps = (ctx) => {
diff --git a/pages/integrations/[integration].tsx b/pages/integrations/[integration].tsx
index 8cdaa93a..1e997470 100644
--- a/pages/integrations/[integration].tsx
+++ b/pages/integrations/[integration].tsx
@@ -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
;
+ return
;
}
function toggleShowAPIKey() {
diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsx
index fb3d84e2..36843394 100644
--- a/pages/integrations/index.tsx
+++ b/pages/integrations/index.tsx
@@ -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 (
-
-
-
+
);
}
diff --git a/pages/settings/embed.tsx b/pages/settings/embed.tsx
index 45409ea2..46e07646 100644
--- a/pages/settings/embed.tsx
+++ b/pages/settings/embed.tsx
@@ -6,13 +6,13 @@ import prisma from "../../lib/prisma";
import Shell from "../../components/Shell";
import SettingsShell from "../../components/Settings";
import { useSession, getSession } from "next-auth/client";
+import Loader from '@components/Loader';
export default function Embed(props) {
const [session, loading] = useSession();
- const router = useRouter();
if (loading) {
- return
;
+ return
;
}
return (
diff --git a/pages/settings/password.tsx b/pages/settings/password.tsx
index 4e93a373..347d1c3a 100644
--- a/pages/settings/password.tsx
+++ b/pages/settings/password.tsx
@@ -5,7 +5,8 @@ import prisma from "../../lib/prisma";
import Modal from "../../components/Modal";
import Shell from "../../components/Shell";
import SettingsShell from "../../components/Settings";
-import { signIn, useSession, getSession } from "next-auth/client";
+import { useSession, getSession } from "next-auth/client";
+import Loader from '@components/Loader';
export default function Settings(props) {
const [session, loading] = useSession();
@@ -14,7 +15,7 @@ export default function Settings(props) {
const newPasswordRef = useRef
();
if (loading) {
- return
;
+ return ;
}
const closeSuccessModal = () => {