Created
December 30, 2020 11:08
-
-
Save tobob/81e3d006b4b2bc85c255e08abde4bd13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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