Fix some leftover errors in snippet cards
This commit is contained in:
@@ -170,12 +170,6 @@ const ShortCard = ({
|
|||||||
{snippetData.code.scopedCss}
|
{snippetData.code.scopedCss}
|
||||||
</style>
|
</style>
|
||||||
<div dangerouslySetInnerHTML={{ __html: snippetData.code.html }} />
|
<div dangerouslySetInnerHTML={{ __html: snippetData.code.html }} />
|
||||||
{
|
|
||||||
snippetData.code.js &&
|
|
||||||
<script>
|
|
||||||
{`function()(${snippetData.code.js})();`}
|
|
||||||
</script>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
<p className='snippet-view'><Link to={`/snippet/${snippetData.id}`} className='button button-b button-view' rel='canonical'>View snippet</Link></p>
|
<p className='snippet-view'><Link to={`/snippet/${snippetData.id}`} className='button button-b button-view' rel='canonical'>View snippet</Link></p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user