diff --git a/front/app/orgs/[orgslug]/(withmenu)/course/[courseid]/activity/[activityid]/error.tsx b/front/app/orgs/[orgslug]/(withmenu)/course/[courseid]/activity/[activityid]/error.tsx
new file mode 100644
index 00000000..9e4c3efb
--- /dev/null
+++ b/front/app/orgs/[orgslug]/(withmenu)/course/[courseid]/activity/[activityid]/error.tsx
@@ -0,0 +1,23 @@
+'use client'; // Error components must be Client Components
+
+import ErrorUI from '@components/UI/Error/Error';
+import { useEffect } from 'react';
+
+export default function Error({
+ error,
+ reset,
+}: {
+ error: Error;
+ reset: () => void;
+}) {
+ useEffect(() => {
+ // Log the error to an error reporting service
+ console.error(error);
+ }, [error]);
+
+ return (
+
+
+
+ );
+}
\ No newline at end of file
diff --git a/front/app/orgs/[orgslug]/(withmenu)/course/[courseid]/error.tsx b/front/app/orgs/[orgslug]/(withmenu)/course/[courseid]/error.tsx
new file mode 100644
index 00000000..9e4c3efb
--- /dev/null
+++ b/front/app/orgs/[orgslug]/(withmenu)/course/[courseid]/error.tsx
@@ -0,0 +1,23 @@
+'use client'; // Error components must be Client Components
+
+import ErrorUI from '@components/UI/Error/Error';
+import { useEffect } from 'react';
+
+export default function Error({
+ error,
+ reset,
+}: {
+ error: Error;
+ reset: () => void;
+}) {
+ useEffect(() => {
+ // Log the error to an error reporting service
+ console.error(error);
+ }, [error]);
+
+ return (
+
+
+
+ );
+}
\ No newline at end of file
diff --git a/front/app/orgs/[orgslug]/(withmenu)/courses/error.tsx b/front/app/orgs/[orgslug]/(withmenu)/courses/error.tsx
new file mode 100644
index 00000000..9e4c3efb
--- /dev/null
+++ b/front/app/orgs/[orgslug]/(withmenu)/courses/error.tsx
@@ -0,0 +1,23 @@
+'use client'; // Error components must be Client Components
+
+import ErrorUI from '@components/UI/Error/Error';
+import { useEffect } from 'react';
+
+export default function Error({
+ error,
+ reset,
+}: {
+ error: Error;
+ reset: () => void;
+}) {
+ useEffect(() => {
+ // Log the error to an error reporting service
+ console.error(error);
+ }, [error]);
+
+ return (
+
+
+
+ );
+}
\ No newline at end of file
diff --git a/front/app/orgs/[orgslug]/(withmenu)/courses/page.tsx b/front/app/orgs/[orgslug]/(withmenu)/courses/page.tsx
index ef2615db..fb3238f3 100644
--- a/front/app/orgs/[orgslug]/(withmenu)/courses/page.tsx
+++ b/front/app/orgs/[orgslug]/(withmenu)/courses/page.tsx
@@ -24,7 +24,7 @@ export async function generateMetadata(
const CoursesPage = async (params: any) => {
const orgslug = params.params.orgslug;
- const courses = await getOrgCourses(orgslug, { revalidate: 360, tags: ['courses'] });
+ const courses = await getOrgCourses(orgslug, { revalidate: 0, tags: ['courses'] });
return (
diff --git a/front/app/orgs/[orgslug]/(withmenu)/error.tsx b/front/app/orgs/[orgslug]/(withmenu)/error.tsx
new file mode 100644
index 00000000..9e4c3efb
--- /dev/null
+++ b/front/app/orgs/[orgslug]/(withmenu)/error.tsx
@@ -0,0 +1,23 @@
+'use client'; // Error components must be Client Components
+
+import ErrorUI from '@components/UI/Error/Error';
+import { useEffect } from 'react';
+
+export default function Error({
+ error,
+ reset,
+}: {
+ error: Error;
+ reset: () => void;
+}) {
+ useEffect(() => {
+ // Log the error to an error reporting service
+ console.error(error);
+ }, [error]);
+
+ return (
+
+
+
+ );
+}
\ No newline at end of file
diff --git a/front/app/orgs/[orgslug]/(withmenu)/page.tsx b/front/app/orgs/[orgslug]/(withmenu)/page.tsx
index 4c5def42..b31a7d77 100644
--- a/front/app/orgs/[orgslug]/(withmenu)/page.tsx
+++ b/front/app/orgs/[orgslug]/(withmenu)/page.tsx
@@ -10,6 +10,7 @@ import { getOrgCollections, getOrgCollectionsWithAuthHeader } from "@services/co
import { getOrganizationContextInfo } from '@services/organizations/orgs';
import { cookies } from 'next/headers';
+import Error from '@components/UI/Error/Error';
type MetadataProps = {
params: { orgslug: string };
@@ -45,6 +46,7 @@ const OrgHomePage = async (params: any) => {
return (
+
{/* Collections */}
diff --git a/front/components/UI/Error/Error.tsx b/front/components/UI/Error/Error.tsx
new file mode 100644
index 00000000..63dc470f
--- /dev/null
+++ b/front/components/UI/Error/Error.tsx
@@ -0,0 +1,23 @@
+import React from 'react'
+
+function ErrorUI() {
+ return (
+
+
+
+
+
+
Error
+
Something went wrong
+
+
+
+
+ )
+}
+
+export default ErrorUI
\ No newline at end of file