Fix prettier on all files

This commit is contained in:
2019-08-03 20:40:07 +05:30
parent feee690b48
commit 67206dfe41
24 changed files with 164 additions and 144 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ function createFunctionComponent(name?: string): React.FunctionComponent {
if (props.children !== undefined) {
return <React.Fragment>{props.children}</React.Fragment>;
} else {
return null
return null;
}
};
@@ -31,7 +31,7 @@ function createClassComponent(name?: string): React.ComponentClass {
if (this.props.children !== undefined) {
return this.props.children;
} else {
return null
return null;
}
}
};
@@ -113,7 +113,7 @@ function createClassComponents(
return returnArr;
}
// Handle other invalid inputs
throw new TypeError("Input is not valid");
}
+1 -1
View File
@@ -9,4 +9,4 @@ function getWrappedComponent(SomeComponent: React.ElementType) {
return WrappedC;
}
export default getWrappedComponent;
export default getWrappedComponent;
+1 -3
View File
@@ -1,9 +1,7 @@
import * as React from "react";
import { mount } from "enzyme";
import { FiberNode, FiberNodeForComponentClass } from "../../src/mocked-types";
import {
isConstructorFunctionComponent
} from "../../src/utils";
import { isConstructorFunctionComponent } from "../../src/utils";
import getWrappedComponent from "./getWrappedComponent";
export class RootNodeNotFoundError extends Error {