Mobile improvements for two-factor form
This commit is contained in:
parent
9a0ed6b291
commit
6ccac6e040
3 changed files with 21 additions and 7 deletions
|
@ -7,6 +7,7 @@ import Spinner from '@/components/elements/Spinner';
|
|||
export interface RequiredModalProps {
|
||||
visible: boolean;
|
||||
onDismissed: () => void;
|
||||
appear?: boolean;
|
||||
}
|
||||
|
||||
type Props = RequiredModalProps & {
|
||||
|
@ -38,6 +39,7 @@ export default (props: Props) => {
|
|||
<CSSTransition
|
||||
timeout={250}
|
||||
classNames={'fade'}
|
||||
appear={props.appear}
|
||||
in={render}
|
||||
unmountOnExit={true}
|
||||
onExited={() => props.onDismissed()}
|
||||
|
|
Reference in a new issue