1
1
mirror of https://github.com/primer/css.git synced 2024-09-22 06:07:31 +03:00

sort imports, comment out ERB transform

This commit is contained in:
Shawn Allen 2019-01-15 11:26:28 -08:00
parent 19f8856969
commit 48463bd5ee

View File

@ -1,8 +1,9 @@
import React from 'react'
import HTMLtoJSX from 'html-2-jsx'
import {Absolute, BorderBox, Box, StyledOcticon as Octicon, Relative, Text, theme} from '@primer/components'
import {LiveEditor, LiveError, LivePreview, LiveProvider} from 'react-live'
import {createGlobalStyle} from 'styled-components'
import {getIconByName} from '@githubprimer/octicons-react'
import {Absolute, BorderBox, Box, StyledOcticon as Octicon, Relative, Text, theme} from '@primer/components'
import ClipboardCopy from './ClipboardCopy'
import Frame from './Frame'
import {CommonStyles, CommonScripts} from './utils'
@ -35,7 +36,7 @@ const converter = new HTMLtoJSX({
const defaultTransform = code => `<React.Fragment>${code}</React.Fragment>`
const languageTransforms = {
erb: erb => sanitizeERB(languageTransforms.html(erb)),
// erb: erb => sanitizeERB(languageTransforms.html(erb)),
html: html => defaultTransform(converter.convert(html)),
jsx: defaultTransform
}