add back past event increment index

This commit is contained in:
akcodez
2024-05-21 11:42:46 -07:00
parent 02064dad3f
commit e19fa6efaa
2 changed files with 12 additions and 1 deletions

View File

@@ -413,6 +413,17 @@ const events = [
image: require("../static/img/events/Virtual-Event.png"),
end_date: "July 13, 2023",
},
{
name: "XRPL Toronto Meetup",
description:
"Prepare for an evening of XRPL Toronto Meetup - a celebration of discovery and connection. Join enthusiasts, innovators, and developers for inspiring talks, conversations, and learning. All are welcome, from seasoned developers to curious newcomers.",
type: "meetup",
link: "https://www.meetup.com/xrpl-toronto-community-meetup/events/294766059",
location: "Downtown Toronto",
date: "August 14, 2023",
image: require("../static/img/events/event-meetup-toronto@2x.jpg"),
end_date: "August 14, 2023",
},
{
name: "XRPL London Meetup (Accelerator Edition)",
description:

View File

@@ -168,7 +168,7 @@ const events = [
const { nearestDateDiff, nearestEvent } = findNearestUpcomingEvent(events);
const XrplEventsAndCarouselSection = ({ events }) => {
const { translate } = useTranslate();
const [currentIndex, setCurrentIndex] = useState(6);
const [currentIndex, setCurrentIndex] = useState(7);
const updateCarousel = () => {
const prevEvent = events[currentIndex - 1] || null;