mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add eslint rule padding-line-between-statements (#1593)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
7b77f18376
commit
dcf253e7d5
401 files changed
+2018
-40
No files matched your search
@@ -70,7 +70,9 @@ export class Animate extends React.Component<AnimateProps> {
|
||||
onTransitionEnd(evt: React.TransitionEvent) {
|
||||
const { enter, leave } = this.statusClassName;
|
||||
const { onTransitionEnd } = this.contentElem.props;
|
||||
|
||||
if (onTransitionEnd) onTransitionEnd(evt);
|
||||
|
||||
// todo: check evt.propertyName and make sure all animating props has finished their transition
|
||||
if (enter && leave) {
|
||||
this.reset();
|
||||
@@ -80,6 +82,7 @@ export class Animate extends React.Component<AnimateProps> {
|
||||
render() {
|
||||
const { name } = this.props;
|
||||
const contentElem = this.contentElem;
|
||||
|
||||
return React.cloneElement(contentElem, {
|
||||
className: cssNames("Animate", name, contentElem.props.className, this.statusClassName),
|
||||
children: this.isVisible ? contentElem.props.children : null,
|
||||
|
||||
Reference in new issue
Block a user