11import React , { useState , useRef } from "react" ;
22import { graphql , useStaticQuery , Link } from "gatsby" ;
3- import { MDXRenderer } from "gatsby-plugin-mdx" ;
43
54import { Container , Row , Col } from "../../../reusecore/Layout" ;
65import 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