Skip to content

Commit 09312a6

Browse files
authored
Merge pull request #7175 from layer5io/copilot/fix-static-html-error
[WIP] Fix static HTML build error for workshops page
2 parents 9c73a2b + 4e17cf9 commit 09312a6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • src/sections/Learn/Workshop-grid

src/sections/Learn/Workshop-grid/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { useState, useRef } from "react";
22
import { graphql, useStaticQuery, Link } from "gatsby";
3-
import { MDXRenderer } from "gatsby-plugin-mdx";
43

54
import { Container, Row, Col } from "../../../reusecore/Layout";
65
import WorkshopCard from "../../../components/Workshop-Card";
@@ -46,7 +45,6 @@ const WorkshopsPage = () => {
4645
fields {
4746
slug
4847
}
49-
body
5048
}
5149
}
5250
}`
@@ -104,15 +102,15 @@ const WorkshopsPage = () => {
104102
<Row style={{
105103
flexWrap: "wrap"
106104
}}>
107-
{data.allMdx.nodes.map(({ id, frontmatter, fields, body }) => (
105+
{data.allMdx.nodes.map(({ id, frontmatter, fields }) => (
108106
<Col {...content && ID === id ? { $xs: 12, $sm: 12, $lg: 12 } : { $xs: 12, $sm: 6, $lg: 4 } } key={id} className="workshop-grid-col">
109107
<div className="workshop-grid-card" ref={(el) => {
110108
if (el) scrollRefMap.current[id] = el;
111109
}} onClick={() => toggleActive(id)}>
112110
<WorkshopCard frontmatter={frontmatter} content={content} ID={ID} id={id} />
113111
<div className={content && ID === id ? "active" : "text-contents"}>
114112
<div className="content">
115-
<MDXRenderer>{body}</MDXRenderer>
113+
<p>{frontmatter.abstract}</p>
116114
</div>
117115
</div>
118116
<div className={content && ID === id ? "btn-and-status-open" : "btn-and-status"}>

0 commit comments

Comments
 (0)