1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 20:08:56 +00:00

removed not-working css transition

This commit is contained in:
Maroš Špak 2018-12-12 10:53:15 +01:00
parent 6f2f938c83
commit 091e84ea8f

View File

@ -32,16 +32,6 @@ import Stellar from 'components/modals/external/Stellar';
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`
position: fixed;
z-index: 10000;
@ -195,13 +185,11 @@ const Modal = (props: Props) => {
}
return (
<Fade key="modal-fade">
<ModalContainer>
<ModalWindow>
{ component }
</ModalWindow>
</ModalContainer>
</Fade>
<ModalContainer>
<ModalWindow>
{ component }
</ModalWindow>
</ModalContainer>
);
};