forked from ddrilling/asb_cloud_front
Добавлен RxJs и косметика
This commit is contained in:
parent
4f4fc7eb33
commit
2951d26b72
22643
package-lock.json
generated
22643
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,6 +20,7 @@
|
||||
"react-dom": "^17.0.2",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-scripts": "4.0.3",
|
||||
"rxjs": "^7.5.4",
|
||||
"typescript": "^4.2.3",
|
||||
"web-vitals": "^1.1.1"
|
||||
},
|
||||
|
@ -7,8 +7,8 @@ type LoaderPortalProps = HTMLAttributes<HTMLDivElement> & {
|
||||
fade?: boolean,
|
||||
}
|
||||
|
||||
export const LoaderPortal: React.FC<LoaderPortalProps> = ({ show, fade = true, children, ...other }) => (
|
||||
<div className={'loader-container'} {...other}>
|
||||
export const LoaderPortal: React.FC<LoaderPortalProps> = ({ className, show, fade = true, children, ...other }) => (
|
||||
<div className={`loader-container ${className}`} {...other}>
|
||||
<div className={'loader-content'}>{children}</div>
|
||||
{show && fade && <div className={'loader-fade'}/>}
|
||||
{show && <div className={'loader-overlay'}><Loader/></div>}
|
||||
|
@ -59,3 +59,5 @@ export const UploadForm = memo(({ url, disabled, accept, style, formData, onUplo
|
||||
</div>
|
||||
)
|
||||
})
|
||||
|
||||
export default UploadForm
|
||||
|
Loading…
Reference in New Issue
Block a user