diff --git a/components/Loader.tsx b/components/Loader.tsx
index b66dfe18..b6c49c94 100644
--- a/components/Loader.tsx
+++ b/components/Loader.tsx
@@ -1,3 +1,7 @@
-export default function Loader(){
- return
-}
\ No newline at end of file
+export default function Loader() {
+ return (
+
+
+
+ );
+}
diff --git a/components/booking/AvailableTimes.tsx b/components/booking/AvailableTimes.tsx
index e2d6af3e..bb690508 100644
--- a/components/booking/AvailableTimes.tsx
+++ b/components/booking/AvailableTimes.tsx
@@ -2,6 +2,8 @@ import Link from "next/link";
import { useRouter } from "next/router";
import Slots from "./Slots";
import { ExclamationIcon } from "@heroicons/react/solid";
+import React from "react";
+import Loader from "@components/Loader";
const AvailableTimes = ({
date,
@@ -49,7 +51,7 @@ const AvailableTimes = ({
)}
- {!isFullyBooked && slots.length === 0 && !hasErrors && }
+ {!isFullyBooked && slots.length === 0 && !hasErrors && }
{hasErrors && (
diff --git a/styles/globals.css b/styles/globals.css
index 30beee13..59a997fc 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -144,7 +144,8 @@
height: 30px;
margin: 60px auto;
position: relative;
- border: 4px solid #000;
+ border-width: 4px;
+ border-style: solid;
animation: loader 2s infinite ease;
}
@@ -152,7 +153,6 @@
vertical-align: top;
display: inline-block;
width: 100%;
- background-color: #000;
animation: loader-inner 2s infinite ease-in;
}