From 109b074d920dd80d3b4e8650bf083e2021d56ba2 Mon Sep 17 00:00:00 2001 From: Rohit Chaudhari <100275369+rohitkbc@users.noreply.github.com> Date: Wed, 6 Dec 2023 13:06:04 +0530 Subject: [PATCH] [MM-55329] Convert ./plugins/test/post_type.test.jsx from Class Component to Function Component (#25487) --- webapp/channels/src/plugins/test/post_type.test.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/webapp/channels/src/plugins/test/post_type.test.tsx b/webapp/channels/src/plugins/test/post_type.test.tsx index e8687e5257..621b23b6df 100644 --- a/webapp/channels/src/plugins/test/post_type.test.tsx +++ b/webapp/channels/src/plugins/test/post_type.test.tsx @@ -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 {'PostTypePlugin'}; - } -} +const PostTypePlugin = () => ( + {'PostTypePlugin'} +); describe('plugins/PostMessageView', () => { const post = {type: 'testtype', message: 'this is some text', id: 'post_id'} as any;