mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-26 07:02:16 +00:00
removed not-working css transition
This commit is contained in:
parent
6f2f938c83
commit
091e84ea8f
@ -32,16 +32,6 @@ import Stellar from 'components/modals/external/Stellar';
|
|||||||
|
|
||||||
import type { Props } from './Container';
|
import type { Props } from './Container';
|
||||||
|
|
||||||
// TODO: animation not working
|
|
||||||
const Fade = (props: { children: React.Node}) => (
|
|
||||||
<CSSTransition
|
|
||||||
{...props}
|
|
||||||
timeout={1000}
|
|
||||||
classNames="fade"
|
|
||||||
>{ props.children }
|
|
||||||
</CSSTransition>
|
|
||||||
);
|
|
||||||
|
|
||||||
const ModalContainer = styled.div`
|
const ModalContainer = styled.div`
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
@ -195,13 +185,11 @@ const Modal = (props: Props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fade key="modal-fade">
|
<ModalContainer>
|
||||||
<ModalContainer>
|
<ModalWindow>
|
||||||
<ModalWindow>
|
{ component }
|
||||||
{ component }
|
</ModalWindow>
|
||||||
</ModalWindow>
|
</ModalContainer>
|
||||||
</ModalContainer>
|
|
||||||
</Fade>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user