diff --git a/src/app/(site)/(internal)/dashboard/components/dreams/CurrentDreamsContainer.tsx b/src/app/(site)/(internal)/dashboard/components/dreams/CurrentDreamsContainer.tsx index ad3618f..6a995dc 100644 --- a/src/app/(site)/(internal)/dashboard/components/dreams/CurrentDreamsContainer.tsx +++ b/src/app/(site)/(internal)/dashboard/components/dreams/CurrentDreamsContainer.tsx @@ -1,8 +1,10 @@ -import {FC, useMemo} from "react"; +import {FC, Fragment, useMemo} from "react"; import {useDreamsData} from "@/app/(site)/(internal)/dashboard/components/dreams/DreamsProvider"; -import DreamCard from "@/app/(site)/(internal)/dashboard/components/dreams/DreamCard"; +import DreamCard from "@/app/(site)/(internal)/dashboard/components/dreams/card/DreamCard"; import LogDreamCard from "@/app/(site)/(internal)/dashboard/components/dreams/LogDreamCard"; import useTodayTimeRange from "@/app/(site)/hooks/useTodayTimeRange"; +import {Spinner} from "@nextui-org/react"; +import DreamCardSkeleton from "@/app/(site)/(internal)/dashboard/components/dreams/card/DreamCardSkeleton"; const CurrentDreamsContainer: FC = () => { const [startOfToday, endOfToday] = useTodayTimeRange() @@ -18,13 +20,21 @@ const CurrentDreamsContainer: FC = () => { return (
diff --git a/src/app/(site)/(internal)/dashboard/components/dreams/card/DreamCardSkeleton.tsx b/src/app/(site)/(internal)/dashboard/components/dreams/card/DreamCardSkeleton.tsx
new file mode 100644
index 0000000..75836d8
--- /dev/null
+++ b/src/app/(site)/(internal)/dashboard/components/dreams/card/DreamCardSkeleton.tsx
@@ -0,0 +1,27 @@
+"use client"
+
+import {FC} from "react";
+import {CardBody, CardHeader} from "@nextui-org/card";
+import Card from "@/app/(site)/components/Card";
+import {Skeleton} from "@nextui-org/react";
+
+const DreamCardSkeleton: FC = () => {
+ return (
+ {dream.title}
+ {dream.comments}
+ ~{calcEstimatedReadingTime(dream.description)} min. read
+