Apply prettier formatting

This commit is contained in:
Michael Weimann 2022-12-12 12:24:14 +01:00
parent 1cac306093
commit 526645c791
No known key found for this signature in database
GPG key ID: 53F535A266BB9584
1576 changed files with 65385 additions and 62478 deletions

View file

@ -95,9 +95,7 @@ export default class NodeAnimator extends React.Component<IProps> {
newProps.style = startStyle;
}
newProps.ref = ((n) => this.collectNode(
c.key, n, restingStyle,
));
newProps.ref = (n) => this.collectNode(c.key, n, restingStyle);
this.children[c.key] = React.cloneElement(c, newProps);
}
@ -105,11 +103,7 @@ export default class NodeAnimator extends React.Component<IProps> {
}
private collectNode(k: string, node: React.ReactInstance, restingStyle: React.CSSProperties): void {
if (
node &&
this.nodes[k] === undefined &&
this.props.startStyles.length > 0
) {
if (node && this.nodes[k] === undefined && this.props.startStyles.length > 0) {
const startStyles = this.props.startStyles;
const domNode = ReactDom.findDOMNode(node);
// start from startStyle 1: 0 is the one we gave it
@ -127,8 +121,6 @@ export default class NodeAnimator extends React.Component<IProps> {
}
public render(): JSX.Element {
return (
<>{ Object.values(this.children) }</>
);
return <>{Object.values(this.children)}</>;
}
}