From b6775d8bab6ebc02e30e4847bfe07ee3f6424d06 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 6 Sep 2022 12:57:53 +0300 Subject: [PATCH] Transition component typing fix --- src/components/Overlay/Transition.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Overlay/Transition.tsx b/src/components/Overlay/Transition.tsx index a071fca0..790ce69b 100644 --- a/src/components/Overlay/Transition.tsx +++ b/src/components/Overlay/Transition.tsx @@ -34,7 +34,11 @@ export const Transition: React.FC = props => { } }, [props.show]) - return mounted && ( + if (!mounted) { + return null + } + + return (