Convert Badge component to typescript

This commit is contained in:
Alex Gleason 2022-02-23 15:29:03 -05:00
parent 2757e476b7
commit a6a87f6702
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import React from 'react'; import React from 'react';
const Badge = (props) => ( const Badge = (props: any) => (
<span className={'badge badge--' + props.slug}>{props.title}</span> <span className={'badge badge--' + props.slug}>{props.title}</span>
); );