mirror of
https://github.com/WDI-Ideas/rubix.git
synced 2026-04-27 19:35:50 +00:00
Fixed date event in upcoming events
This commit is contained in:
@@ -18,7 +18,9 @@ const HappenCard = ({ key, date, text, para, loader, title }) => {
|
||||
newDate
|
||||
);
|
||||
|
||||
if (loader) {
|
||||
console.log(date);
|
||||
|
||||
if (isLoading) {
|
||||
return (
|
||||
<div>
|
||||
<Loader />
|
||||
|
||||
@@ -122,16 +122,18 @@ const UpcomingEvents = () => {
|
||||
},
|
||||
}}
|
||||
>
|
||||
{eventsCard?.map((item) => (
|
||||
<HappenCard
|
||||
key={item.id}
|
||||
date={item.eventDates[0].date}
|
||||
text={item.title}
|
||||
para={item.content}
|
||||
// curentDate={item.eventDates}
|
||||
title={item.title_slug}
|
||||
/>
|
||||
))}
|
||||
{eventsCard?.map((item) =>
|
||||
item.eventDates.map((dateItem) => (
|
||||
<HappenCard
|
||||
key={item.id}
|
||||
date={dateItem.date}
|
||||
text={item.title}
|
||||
para={item.content}
|
||||
// curentDate={item.eventDates}
|
||||
title={item.title_slug}
|
||||
/>
|
||||
))
|
||||
)}
|
||||
</SimpleGrid>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
@@ -208,6 +208,25 @@ const NewUseCase = ({
|
||||
marginBottom={"2rem"}
|
||||
key={item.id}
|
||||
>
|
||||
{item ? (
|
||||
<Text
|
||||
className="rubix-fw-500"
|
||||
fontSize="3xl"
|
||||
textColor={"#ffffff"}
|
||||
marginBottom={"3rem"}
|
||||
marginInline={"3rem"}
|
||||
sx={{
|
||||
"@media (max-width: 600px)": {
|
||||
fontSize: "22px",
|
||||
textAlign: "center",
|
||||
},
|
||||
}}
|
||||
>
|
||||
Use Cases
|
||||
</Text>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
<Box
|
||||
width={"275px"}
|
||||
background={"#15181E"}
|
||||
|
||||
Reference in New Issue
Block a user