Transition component typing fix
This commit is contained in:
1 parent
89d0aa9926
commit
b6775d8bab
1 file changed
+5
-1
@@ -34,7 +34,11 @@ export const Transition: React.FC<ITransitionProps> = props => {
|
|||||||
}
|
}
|
||||||
}, [props.show])
|
}, [props.show])
|
||||||
|
|
||||||
return mounted && (
|
if (!mounted) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
...props.extraStyle,
|
...props.extraStyle,
|
||||||
|
|||||||
Reference in new issue
Block a user