[MM-55329] Convert ./plugins/test/post_type.test.jsx from Class Component to Function Component (#25487)

Этот коммит содержится в:
Rohit Chaudhari
2023-12-06 13:06:04 +05:30
коммит произвёл GitHub
родитель 82b7eef563
Коммит 109b074d92

Просмотреть файл

@@ -8,11 +8,9 @@ import {Preferences} from 'mattermost-redux/constants';
import PostMessageView from 'components/post_view/post_message_view/post_message_view';
class PostTypePlugin extends React.PureComponent {
render() {
return <span id='pluginId'>{'PostTypePlugin'}</span>;
}
}
const PostTypePlugin = () => (
<span id='pluginId'>{'PostTypePlugin'}</span>
);
describe('plugins/PostMessageView', () => {
const post = {type: 'testtype', message: 'this is some text', id: 'post_id'} as any;