From 04dfb48e5a749a9dadce793b0510daa89fc56422 Mon Sep 17 00:00:00 2001 From: Julian Date: Sun, 21 Jul 2024 20:11:22 +0200 Subject: [PATCH] Added skeleton loader to PeriodCard --- components/PeriodCard.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/components/PeriodCard.tsx b/components/PeriodCard.tsx index bb8a30cd..5c21f2d5 100644 --- a/components/PeriodCard.tsx +++ b/components/PeriodCard.tsx @@ -39,7 +39,16 @@ const PeriodCard = ({ period }: Props) => { router.push(`/application/${period._id}`); }; - if (isLoading) return

Vent litt...

; + if (isLoading) { + return ( +
+
+
+
+
+
+ ); + } return (