fix Overlay lag effect

This commit is contained in:
tmshv committed 2019-10-15 22:59:11 +03:00
1 parent 30f1274405
commit bdde0f79c1
2 files changed
+5 -2

No files matched your search

+2
View File
@@ -1,6 +1,7 @@
import * as React from 'react'
export interface ITransitionProps {
extraStyle?: React.CSSProperties
show: boolean
}
@@ -32,6 +33,7 @@ export const Transition: React.FC<ITransitionProps> = props => {
return mounted && (
<div
style={{
...props.extraStyle,
opacity,
transition: 'all 250ms',
}}