|
1 | 1 | import React, { useState, useRef } from "react"; |
2 | 2 | import { graphql, useStaticQuery, Link } from "gatsby"; |
3 | | -import { MDXRenderer } from "gatsby-plugin-mdx"; |
4 | 3 |
|
5 | 4 | import { Container, Row, Col } from "../../../reusecore/Layout"; |
6 | 5 | import WorkshopCard from "../../../components/Workshop-Card"; |
@@ -46,7 +45,6 @@ const WorkshopsPage = () => { |
46 | 45 | fields { |
47 | 46 | slug |
48 | 47 | } |
49 | | - body |
50 | 48 | } |
51 | 49 | } |
52 | 50 | }` |
@@ -104,15 +102,15 @@ const WorkshopsPage = () => { |
104 | 102 | <Row style={{ |
105 | 103 | flexWrap: "wrap" |
106 | 104 | }}> |
107 | | - {data.allMdx.nodes.map(({ id, frontmatter, fields, body }) => ( |
| 105 | + {data.allMdx.nodes.map(({ id, frontmatter, fields }) => ( |
108 | 106 | <Col {...content && ID === id ? { $xs: 12, $sm: 12, $lg: 12 } : { $xs: 12, $sm: 6, $lg: 4 } } key={id} className="workshop-grid-col"> |
109 | 107 | <div className="workshop-grid-card" ref={(el) => { |
110 | 108 | if (el) scrollRefMap.current[id] = el; |
111 | 109 | }} onClick={() => toggleActive(id)}> |
112 | 110 | <WorkshopCard frontmatter={frontmatter} content={content} ID={ID} id={id} /> |
113 | 111 | <div className={content && ID === id ? "active" : "text-contents"}> |
114 | 112 | <div className="content"> |
115 | | - <MDXRenderer>{body}</MDXRenderer> |
| 113 | + <p>{frontmatter.abstract}</p> |
116 | 114 | </div> |
117 | 115 | </div> |
118 | 116 | <div className={content && ID === id ? "btn-and-status-open" : "btn-and-status"}> |
|
0 commit comments