mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-07 20:26:15 +00:00
refactor: ColumnSubheading
This commit is contained in:
parent
aafe85acaa
commit
85e89dfc16
|
@ -1,15 +0,0 @@
|
|||
import PropTypes from 'prop-types';
|
||||
|
||||
const ColumnSubheading = ({ text }) => {
|
||||
return (
|
||||
<div className='column-subheading'>
|
||||
{text}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
ColumnSubheading.propTypes = {
|
||||
text: PropTypes.string.isRequired,
|
||||
};
|
||||
|
||||
export default ColumnSubheading;
|
|
@ -0,0 +1,11 @@
|
|||
import React from 'react';
|
||||
|
||||
interface Props {
|
||||
text: string;
|
||||
}
|
||||
|
||||
const ColumnSubheading: React.FC<Props> = ({ text }) => {
|
||||
return <div className='column-subheading'>{text}</div>;
|
||||
};
|
||||
|
||||
export default ColumnSubheading;
|
Loading…
Reference in New Issue
Block a user