From d21236b908e400e8ba696cc507cf03d6b3919802 Mon Sep 17 00:00:00 2001
From: Syed Ali Abbas Zaidi
<88369802+Syed-Ali-Abbas-Zaidi@users.noreply.github.com>
Date: Mon, 19 Feb 2024 12:58:49 +0500
Subject: [PATCH] [MM-56843] Convert `./actions/views/modals.test.jsx` from
Class Component to Function Component (#26238)
---
.../src/actions/views/modals.test.jsx | 20 ++++++++-----------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/webapp/channels/src/actions/views/modals.test.jsx b/webapp/channels/src/actions/views/modals.test.jsx
index 82207d3f3c..a9a2fa4767 100644
--- a/webapp/channels/src/actions/views/modals.test.jsx
+++ b/webapp/channels/src/actions/views/modals.test.jsx
@@ -9,18 +9,14 @@ import {openModal, closeModal} from 'actions/views/modals';
import mockStore from 'tests/test_store';
import {ActionTypes, ModalIdentifiers} from 'utils/constants';
-class TestModal extends React.PureComponent {
- render() {
- return (
-
-
-
-
- );
- }
-}
+const TestModal = () => (
+
+
+
+
+);
describe('modals view actions', () => {
let store;