added loader to dark mode

This commit is contained in:
Peer Richelsen committed 2021-08-04 21:39:59 +02:00
1 parent 6977b74f35
commit 5ff7377797
3 files changed
+12 -6

No files matched your search

+3 -1
View File
@@ -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 = ({
</div>
)}
{!isFullyBooked && slots.length === 0 && !hasErrors && <div className="loader" />}
{!isFullyBooked && slots.length === 0 && !hasErrors && <Loader />}
{hasErrors && (
<div className="bg-yellow-50 border-l-4 border-yellow-400 p-4">