From d68ca5d68ac267884197c0acf1bb252fa3ad87a9 Mon Sep 17 00:00:00 2001 From: Mirha Masala Date: Sat, 11 Nov 2023 10:16:59 +0000 Subject: [PATCH] Add Spinner --- src/components/Map.tsx | 3 ++- src/components/Spinner.jsx | 41 ++++++++++++++++++++------------------ 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src/components/Map.tsx b/src/components/Map.tsx index 1105abcd..65611eba 100644 --- a/src/components/Map.tsx +++ b/src/components/Map.tsx @@ -7,6 +7,7 @@ import { } from "@react-google-maps/api"; import { Link } from "@/components/Link"; +import { Spinner } from "@/components/Spinner"; import { type PublishedSpotWithCategoryAndCity } from "@/types/spots.type"; type Props = { @@ -159,7 +160,7 @@ function WrappedMap(props: Props) { if (!isLoaded) return (
- Loading... +
); diff --git a/src/components/Spinner.jsx b/src/components/Spinner.jsx index 70021d5f..fbb09c02 100644 --- a/src/components/Spinner.jsx +++ b/src/components/Spinner.jsx @@ -1,23 +1,26 @@ export function Spinner() { return ( - - - - +
+ Loading + + + + +
); }