Skip to content

Commit 006f9e9

Browse files
authored
Merge branch 'master' into lint
Signed-off-by: jamieplu <179417684+jamieplu@users.noreply.github.com>
2 parents 93e502c + 754c1ed commit 006f9e9

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

  • src/sections/Learn/Workshop-grid

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

Lines changed: 3 additions & 6 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
}`
@@ -103,9 +101,8 @@ const WorkshopsPage = () => {
103101
<div className="workshop-grid-wrapper">
104102
<Row style={{
105103
flexWrap: "wrap"
106-
}}
107-
>
108-
{data.allMdx.nodes.map(({ id, frontmatter, fields, body }) => (
104+
}}>
105+
{data.allMdx.nodes.map(({ id, frontmatter, fields }) => (
109106
<Col {...content && ID === id ? { $xs: 12, $sm: 12, $lg: 12 } : { $xs: 12, $sm: 6, $lg: 4 } } key={id} className="workshop-grid-col">
110107
<div className="workshop-grid-card" ref={(el) => {
111108
if (el) scrollRefMap.current[id] = el;
@@ -114,7 +111,7 @@ const WorkshopsPage = () => {
114111
<WorkshopCard frontmatter={frontmatter} content={content} ID={ID} id={id} />
115112
<div className={content && ID === id ? "active" : "text-contents"}>
116113
<div className="content">
117-
<MDXRenderer>{body}</MDXRenderer>
114+
<p>{frontmatter.abstract}</p>
118115
</div>
119116
</div>
120117
<div className={content && ID === id ? "btn-and-status-open" : "btn-and-status"}>

0 commit comments

Comments
 (0)