diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 1d08d75..430e6cc 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -8,7 +8,7 @@ const notFound = () => {
- +
); diff --git a/src/components/BackButton/back.tsx b/src/components/BackButton/back.tsx index bd3c9e9..f79259e 100644 --- a/src/components/BackButton/back.tsx +++ b/src/components/BackButton/back.tsx @@ -18,7 +18,7 @@ const ImageChanger = (props: ImageChangerProps) => { Back to cluster { router.push('/clusters'); }} diff --git a/src/components/ClusterCarousel/ClusterCarousel.tsx b/src/components/ClusterCarousel/ClusterCarousel.tsx index bad05c0..cbcd904 100644 --- a/src/components/ClusterCarousel/ClusterCarousel.tsx +++ b/src/components/ClusterCarousel/ClusterCarousel.tsx @@ -80,6 +80,10 @@ const ClusterCarousel = ({ id, name }: { id: number; name: string }) => { } }; + const navigateToEvent = () => { + router.push(`/events/${id}/${name}/${details[index].id}`); + }; + return (
< @@ -111,11 +115,9 @@ const ClusterCarousel = ({ id, name }: { id: number; name: string }) => { height={Math.min(data.image?.height, 100)} objectPosition="center" objectFit="contain" - className={`rounded-lg lg:max-h[20vh] lg:max-w-[20vw]`} + className={`rounded-lg lg:max-h[20vh] lg:max-w-[20vw] cursor-pointer`} alt="cluster" - onClick={() => { - router.push(`/events/${id}/${name}/${data.id}`); - }} + onClick={navigateToEvent} />
@@ -125,7 +127,10 @@ const ClusterCarousel = ({ id, name }: { id: number; name: string }) => {
<
-
+
{details[index] ? details[index].name : 'Loading'}
diff --git a/src/components/Toast/Toast.tsx b/src/components/Toast/Toast.tsx index 91ff471..145da77 100644 --- a/src/components/Toast/Toast.tsx +++ b/src/components/Toast/Toast.tsx @@ -8,7 +8,7 @@ const Toast = () => { gutter={8} containerClassName="toasty" containerStyle={{ - fontFamily: 'DotMatrix_TR', + fontFamily: 'Orbitron', }} toastOptions={{ className: '',