diff --git a/app/javascript/mastodon/features/notifications/components/clear_column_button.jsx b/app/javascript/mastodon/features/notifications/components/clear_column_button.jsx deleted file mode 100644 index 73eaecba59..0000000000 --- a/app/javascript/mastodon/features/notifications/components/clear_column_button.jsx +++ /dev/null @@ -1,21 +0,0 @@ -import PropTypes from 'prop-types'; -import { PureComponent } from 'react'; - -import { FormattedMessage } from 'react-intl'; - -import DeleteForeverIcon from '@/material-icons/400-24px/delete_forever.svg?react'; -import { Icon } from 'mastodon/components/icon'; - -export default class ClearColumnButton extends PureComponent { - - static propTypes = { - onClick: PropTypes.func.isRequired, - }; - - render () { - return ( - - ); - } - -} diff --git a/app/javascript/mastodon/features/notifications/components/clear_column_button.tsx b/app/javascript/mastodon/features/notifications/components/clear_column_button.tsx new file mode 100644 index 0000000000..bdfa9f4bf5 --- /dev/null +++ b/app/javascript/mastodon/features/notifications/components/clear_column_button.tsx @@ -0,0 +1,27 @@ +import React, { MouseEventHandler } from 'react'; +import { FormattedMessage } from 'react-intl'; + +import DeleteForeverIcon from '@/material-icons/400-24px/delete_forever.svg?react'; +import { Icon } from 'mastodon/components/icon'; + +interface Props { + onClick?: MouseEventHandler; +} + +const ClearColumnButton: React.FC = ({ onClick }) => { + return ( + + ); +}; + +export default ClearColumnButton;