mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-56843] Convert ./actions/views/modals.test.jsx
from Class Component to Function Component (#26238)
This commit is contained in:
parent
f130615011
commit
d21236b908
@ -9,9 +9,7 @@ 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 = () => (
|
||||
<Modal
|
||||
show={true}
|
||||
>
|
||||
@ -19,8 +17,6 @@ class TestModal extends React.PureComponent {
|
||||
<Modal.Body/>
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
describe('modals view actions', () => {
|
||||
let store;
|
||||
|
Loading…
Reference in New Issue
Block a user