Refactoring, create component OpenInCodepenio
This commit is contained in:
parent
82f839a35f
commit
97340d7135
@ -63,7 +63,6 @@ class OpenInCodepenio extends Component<OpenInCodepenioProps> {
|
|||||||
getExternalLibraries = (type: LibraryType): string => {
|
getExternalLibraries = (type: LibraryType): string => {
|
||||||
let library: string[] = []
|
let library: string[] = []
|
||||||
const { code, support = SupportType.HTML } = this.props;
|
const { code, support = SupportType.HTML } = this.props;
|
||||||
|
|
||||||
Object.values(this.libraries).forEach((value: Library) => {
|
Object.values(this.libraries).forEach((value: Library) => {
|
||||||
if( value.validate(support, code)){
|
if( value.validate(support, code)){
|
||||||
library = value[type]
|
library = value[type]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user