Finish mail settings management

This commit is contained in:
2023-12-05 18:17:14 +08:00
parent f19e08bdcd
commit 00887e2e2e
7 changed files with 178 additions and 64 deletions

View File

@@ -0,0 +1,30 @@
import React from 'react'
import Icon from '@ant-design/icons'
import '@/assets/css/components/common/loading-mask.scss'
import { COLOR_FONT_MAIN } from '@/constants/common.constants'
interface LoadingMaskProps extends React.PropsWithChildren {
hidden?: boolean
}
const LoadingMask: React.FC<LoadingMaskProps> = (props) => {
const loadingIcon = (
<>
<Icon
component={IconFatwebLoading}
style={{ fontSize: 24, color: COLOR_FONT_MAIN }}
spin
/>
</>
)
return props.hidden ? (
props.children
) : (
<>
<div className={'loading-mask'}>
<AntdSpin indicator={loadingIcon} />
</div>
</>
)
}
export default LoadingMask