refactor(components): Removed prop-types dependency
This commit is contained in:
parent
8cf8424437
commit
cda9b03713
44 changed files with 559 additions and 1026 deletions
|
@ -1,5 +1,4 @@
|
|||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { getProps } from '../utils'
|
||||
|
||||
const Snippet = (props) => {
|
||||
|
@ -25,8 +24,4 @@ const Snippet = (props) => {
|
|||
return <use {...snippetProps} {...getProps(props.snippet)} />
|
||||
}
|
||||
|
||||
Snippet.propTypes = {
|
||||
snippet: PropTypes.object.isRequired
|
||||
}
|
||||
|
||||
export default Snippet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue