Convert Badge component to typescript
This commit is contained in:
parent
2757e476b7
commit
a6a87f6702
|
@ -1,7 +1,7 @@
|
|||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
|
||||
const Badge = (props) => (
|
||||
const Badge = (props: any) => (
|
||||
<span className={'badge badge--' + props.slug}>{props.title}</span>
|
||||
);
|
||||
|
Loading…
Reference in New Issue