Throw out accidental badge.tsx changes

remove-makegetotheraccounts
Alex Gleason 3 years ago
parent c8c5a6b077
commit c420e83bff
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -1,15 +1,9 @@
import PropTypes from 'prop-types';
import React from 'react';
import { useAppSelector } from 'soapbox/hooks';
const Badge = (props: any) => {
const title = useAppSelector(state => state.instance.titles);
return (
<span title={title} className={'badge badge--' + props.slug}>{props.title}</span>
);
};
const Badge = (props: any) => (
<span className={'badge badge--' + props.slug}>{props.title}</span>
);
Badge.propTypes = {
title: PropTypes.string.isRequired,

Loading…
Cancel
Save