- {collection.courses.slice(0,3).map((course: any) => (
+ {collection.courses.slice(0, 3).map((course: any) => (
}content/uploads/img/${course.thumbnail}`})
diff --git a/front/app/_orgs/[orgslug]/(withmenu)/trail/page.tsx b/front/app/_orgs/[orgslug]/(withmenu)/trail/page.tsx
index f965dce1..b44645af 100644
--- a/front/app/_orgs/[orgslug]/(withmenu)/trail/page.tsx
+++ b/front/app/_orgs/[orgslug]/(withmenu)/trail/page.tsx
@@ -1,4 +1,5 @@
"use client";
+import PageLoading from "@components/Pages/PageLoading";
import { getAPIUrl, getBackendUrl } from "@services/config/config";
import { swrFetcher } from "@services/utils/ts/requests";
import React from "react";
@@ -16,7 +17,7 @@ function Trail(params: any) {
{error &&
Failed to load
}
{!trail ? (
-
Loading...
+
) : (
{trail.courses.map((course: any) => (
diff --git a/front/components/Pages/PageLoading.tsx b/front/components/Pages/PageLoading.tsx
new file mode 100644
index 00000000..52fa3a61
--- /dev/null
+++ b/front/components/Pages/PageLoading.tsx
@@ -0,0 +1,16 @@
+import React from 'react'
+
+function PageLoading() {
+ return (
+
+ )
+}
+
+export default PageLoading
\ No newline at end of file