Skip to content

Instantly share code, notes, and snippets.

@tobob
Created December 30, 2020 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobob/81e3d006b4b2bc85c255e08abde4bd13 to your computer and use it in GitHub Desktop.
Save tobob/81e3d006b4b2bc85c255e08abde4bd13 to your computer and use it in GitHub Desktop.
import React from "react"
import { graphql } from "gatsby"
import RichText from '@madebyconnor/rich-text-to-jsx';
const WallOfTextComponent = ({text}) => <RichText richText={text.json} />
export default WallOfTextComponent
export const modelName = 'ContentfulWallOfTextComponent';
export const query = graphql`
fragment WallOfTextComponentFragment on ContentfulWallOfTextComponent {
text {
json
}
__typename
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment