🚧 Work on components
This commit is contained in:
parent
edc726ebb1
commit
b02c6d1b68
10 changed files with 212 additions and 193 deletions
|
@ -1,5 +1,6 @@
|
|||
import React from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { getProps } from "../utils";
|
||||
|
||||
const Snippet = props => {
|
||||
const snippetProps = {
|
||||
|
@ -26,7 +27,7 @@ const Snippet = props => {
|
|||
}
|
||||
}
|
||||
|
||||
return <use {...snippetProps} />;
|
||||
return <use {...snippetProps} {...getProps(props.snippet)} />;
|
||||
};
|
||||
|
||||
Snippet.propTypes = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue