2
2
/* eslint-disable import/no-unresolved */
3
3
/* eslint-disable import/extensions */
4
4
import React , { useEffect } from "react" ;
5
+ import { LazyLoadImage } from "react-lazy-load-image-component" ;
5
6
import { Link } from "react-router-dom" ;
6
7
8
+ import { error500svg } from "../../../../assets/images/errorPages" ;
7
9
import {
8
10
calculateDistanceToDate ,
9
11
formatEventTime ,
10
12
startEventDate ,
11
13
} from "../../../../utilities/formatEventDate" ;
12
14
import { Loader , Button } from "../../../components" ;
13
- import Error500 from "../../errorPages/Error500" ;
14
15
import useTopEvents from "@/hooks/Queries/eventsSection/useTopEvents" ;
15
- import { LazyLoadImage } from "react-lazy-load-image-component" ;
16
- import { error500svg } from "../../../../assets/images/errorPages" ;
16
+
17
17
function OurEvents ( ) {
18
18
const {
19
19
data : topEvents ,
@@ -31,7 +31,7 @@ function OurEvents() {
31
31
< section className = "w-full max-w-1440 mx-auto flex-center flex-col gap-8 px-3 pt-2" >
32
32
< div className = "flex-center gap-4 flex-col w-full max-w-2xl text-center" >
33
33
< h3 className = "max-w-lg text-green-header text-center font-semibold text-xl md:text-3xl" >
34
- You can’t spell community without meet-up{ " " }
34
+ You can’t spell community without meet-up
35
35
</ h3 >
36
36
37
37
< p className = "text-sm md:text-base font-normal" >
@@ -73,8 +73,8 @@ function OurEvents() {
73
73
) }
74
74
75
75
{ isSuccess && (
76
- // <div className="py-4 flex flex-row md:flex-col gap-4 md:pr-8 overflow-x-scroll md:overflow-y-scroll h-full md:py-2 w-full md:w-1/2 scrollbar">
77
- < div className = "w-full flex flex-row md:flex-col overflow-x-auto gap-4" >
76
+ < div className = "py-4 flex flex-row md:flex-col gap-4 md:pr-8 overflow-x-scroll md:overflow-y-scroll h-full md:py-2 w-full md:w-1/2 scrollbar" >
77
+ { /* <div className="w-full flex flex-row md:flex-col overflow-x-auto gap-4"> */ }
78
78
{ topEvents ?. count === 0 ? (
79
79
< p className = "" > No events found!</ p >
80
80
) : (
0 commit comments