Add support for copying files.

This commit is contained in:
Dane Everitt 2019-08-04 15:34:46 -07:00
parent 5f59210c85
commit 2f9128508a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 55 additions and 10 deletions

View file

@ -3,10 +3,13 @@ import classNames from 'classnames';
import { CSSTransition } from 'react-transition-group';
import Spinner from '@/components/elements/Spinner';
export default ({ large, visible }: { visible: boolean; large?: boolean }) => (
export default ({ large, fixed, visible }: { visible: boolean; fixed?: boolean; large?: boolean }) => (
<CSSTransition timeout={150} classNames={'fade'} in={visible} unmountOnExit={true}>
<div
className={classNames('absolute pin-t pin-l flex items-center justify-center w-full h-full rounded')}
className={classNames('z-50 pin-t pin-l flex items-center justify-center w-full h-full rounded', {
absolute: !fixed,
fixed: fixed,
})}
style={{ background: 'rgba(0, 0, 0, 0.45)' }}
>
<Spinner large={large}/>