Throw out accidental badge.tsx changes
This commit is contained in:
parent
c8c5a6b077
commit
c420e83bff
1 changed files with 3 additions and 9 deletions
|
@ -1,15 +1,9 @@
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
const Badge = (props: any) => (
|
||||||
|
<span className={'badge badge--' + props.slug}>{props.title}</span>
|
||||||
const Badge = (props: any) => {
|
);
|
||||||
const title = useAppSelector(state => state.instance.titles);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<span title={title} className={'badge badge--' + props.slug}>{props.title}</span>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
Badge.propTypes = {
|
Badge.propTypes = {
|
||||||
title: PropTypes.string.isRequired,
|
title: PropTypes.string.isRequired,
|
||||||
|
|
Loading…
Reference in a new issue