Linting
This commit is contained in:
5
src/docs/templates/TagPage.js
vendored
5
src/docs/templates/TagPage.js
vendored
@ -34,11 +34,10 @@ const TagRoute = props => {
|
|||||||
snippetData={{
|
snippetData={{
|
||||||
title: node.frontmatter.title,
|
title: node.frontmatter.title,
|
||||||
html: node.html,
|
html: node.html,
|
||||||
code: getCodeBlocks(node.rawMarkdownBody).code,
|
|
||||||
tags: node.frontmatter.tags.split(',').map(v => v.trim()),
|
tags: node.frontmatter.tags.split(',').map(v => v.trim()),
|
||||||
id: node.fields.slug.slice(1),
|
id: node.fields.slug.slice(1),
|
||||||
code: props.data.snippetDataJson.data.find(v => v.title == node.frontmatter.title).attributes.codeBlocks,
|
code: props.data.snippetDataJson.data.find(v => v.title === node.frontmatter.title).attributes.codeBlocks,
|
||||||
supportPercentage: props.data.snippetDataJson.data.find(v => v.title == node.frontmatter.title).attributes.browserSupport.supportPercentage,
|
supportPercentage: props.data.snippetDataJson.data.find(v => v.title === node.frontmatter.title).attributes.browserSupport.supportPercentage,
|
||||||
}}
|
}}
|
||||||
isDarkMode={props.isDarkMode}
|
isDarkMode={props.isDarkMode}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user