([]);
@@ -54,6 +49,7 @@ const EventsDetailsPage = () => {
{
})
}
>
- Register now
+ {eventsData.buttonText}
)}
@@ -87,20 +83,6 @@ const EventsDetailsPage = () => {
)}
))}
-
-
-
);
diff --git a/src/app/events/eventsList.json b/src/app/events/eventsList.json
index 357eda6d..1d7a4e8e 100644
--- a/src/app/events/eventsList.json
+++ b/src/app/events/eventsList.json
@@ -1,4 +1,17 @@
[
+ {
+ "name": "Ethereum, ZK and Scroll writers competition",
+ "date": "Oct 28 - Sept 13, 2024",
+ "location": "Global Online Event",
+ "url": "../events/writers-competition-2024q4",
+ "image": "/images/writers-competition-2024q4.svg",
+ "buttonText": "Submit your article",
+ "buttonDisabled": "false",
+ "status": ["All time", "Live"],
+ "region": ["All regions", "Virtual"],
+ "registrationLink": "https://tally.so/r/mYYVo0",
+ "submissionLink": "https://tally.so/r/3NYdWQ"
+ },
{
"name": "Ethcon Korea 2024 ",
"date": "Oct 18-20, 2024",
diff --git a/src/app/solidity/[slug]/page.tsx b/src/app/solidity/[slug]/page.tsx
index bb631c4d..dce02077 100644
--- a/src/app/solidity/[slug]/page.tsx
+++ b/src/app/solidity/[slug]/page.tsx
@@ -17,12 +17,7 @@ import { SvgIcon, Box, Typography, Skeleton } from "@mui/material";
import { styled } from "@mui/system";
-const MDXRemote = dynamic(
- () => import("next-mdx-remote").then((mod) => mod.MDXRemote),
- {
- ssr: false,
- },
-);
+import { MDXRemote } from "next-mdx-remote";
const ChallengeInfo = styled(Box)({
display: "grid",
diff --git a/src/components/EventsHeader/index.tsx b/src/components/EventsHeader/index.tsx
index 2421b891..8e4d74cd 100644
--- a/src/components/EventsHeader/index.tsx
+++ b/src/components/EventsHeader/index.tsx
@@ -13,7 +13,7 @@ import BackSvg from "@/assets/svgs/common/back.svg";
const EventsHeader = (props) => {
const { isMobile } = useCheckViewport();
- const { title, url, registrationLink, eventsDate, location, imgClass } =
+ const { title, buttonText, url, registrationLink, eventsDate, location, imgClass } =
useMemo(() => props, [props]);
console.log("Props: ", props);
@@ -62,7 +62,7 @@ const EventsHeader = (props) => {
})
}
>
- Register now
+ { buttonText }
![]()