feat: init modal loader components
This commit is contained in:
19
src/component/Modal/ModalLoader.js
Normal file
19
src/component/Modal/ModalLoader.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import {Modal, Spin} from "antd";
|
||||
import {observer} from 'mobx-react-lite';
|
||||
|
||||
export const ModalLoader = observer(({isOpen, text}) => {
|
||||
return <Modal
|
||||
title={null}
|
||||
footer={null}
|
||||
visible={isOpen}
|
||||
closable={false}
|
||||
centered
|
||||
style={{zIndex: 9999999999}}
|
||||
>
|
||||
<div style={{display: 'flex', alignItems: 'center', justifyContent: 'center', flexDirection: 'column'}}>
|
||||
<Spin size={'large'}/>
|
||||
<span style={{marginTop: 5}}>{text || 'Loading ...'}</span>
|
||||
</div>
|
||||
</Modal>
|
||||
});
|
||||
Reference in New Issue
Block a user