Добавлен RxJs и косметика

This commit is contained in:
Александр Сироткин 2022-02-24 15:42:26 +05:00
parent 4f4fc7eb33
commit 2951d26b72
4 changed files with 22613 additions and 37 deletions

22643
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -20,6 +20,7 @@
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"react-router-dom": "^5.2.0", "react-router-dom": "^5.2.0",
"react-scripts": "4.0.3", "react-scripts": "4.0.3",
"rxjs": "^7.5.4",
"typescript": "^4.2.3", "typescript": "^4.2.3",
"web-vitals": "^1.1.1" "web-vitals": "^1.1.1"
}, },

View File

@ -7,8 +7,8 @@ type LoaderPortalProps = HTMLAttributes<HTMLDivElement> & {
fade?: boolean, fade?: boolean,
} }
export const LoaderPortal: React.FC<LoaderPortalProps> = ({ show, fade = true, children, ...other }) => ( export const LoaderPortal: React.FC<LoaderPortalProps> = ({ className, show, fade = true, children, ...other }) => (
<div className={'loader-container'} {...other}> <div className={`loader-container ${className}`} {...other}>
<div className={'loader-content'}>{children}</div> <div className={'loader-content'}>{children}</div>
{show && fade && <div className={'loader-fade'}/>} {show && fade && <div className={'loader-fade'}/>}
{show && <div className={'loader-overlay'}><Loader/></div>} {show && <div className={'loader-overlay'}><Loader/></div>}

View File

@ -59,3 +59,5 @@ export const UploadForm = memo(({ url, disabled, accept, style, formData, onUplo
</div> </div>
) )
}) })
export default UploadForm