Bump Prettier to 1.13.4 on xplat

Summary:
@public

Bump Prettier to use version 1.13.4
All code changes are caused by running Prettier and should only affect files that have an `format` header.
All other changes caused by yarn.

Reviewed By: ryanmce

Differential Revision: D8251255

fbshipit-source-id: 0b4445c35f1269d72730f2000002a27c1bc35914
This commit is contained in:
Peter van der Zee
2018-06-06 05:20:40 -07:00
committed by Facebook Github Bot
parent eb7cb11ffd
commit b47f0ce41a
5 changed files with 13 additions and 17 deletions

View File

@@ -336,8 +336,7 @@ export default class Editor extends Component<Props> {
icon="plus-circle-o"
disabled={!Boolean(this.props.onAdd)}
onClick={this.props.onAdd}
type="primary"
>
type="primary">
add child node
</Button>
</Col>
@@ -346,8 +345,7 @@ export default class Editor extends Component<Props> {
icon="close-circle-o"
disabled={!Boolean(this.props.onRemove)}
onClick={this.props.onRemove}
type="danger"
>
type="danger">
remove node
</Button>
</Col>

View File

@@ -154,7 +154,7 @@ export default class Playground extends Component<Props, State> {
modifyAtPath(
path: Array<any>,
value: any,
selectedNodePath?: ?Array<number> = this.state.selectedNodePath
selectedNodePath?: ?Array<number> = this.state.selectedNodePath,
) {
// $FlowFixMe
const layoutDefinition = setIn(this.state.layoutDefinition, path, value);
@@ -169,7 +169,7 @@ export default class Playground extends Component<Props, State> {
}
getHash = (
layoutDefinition: LayoutRecordT = this.state.layoutDefinition
layoutDefinition: LayoutRecordT = this.state.layoutDefinition,
): string =>
btoa(JSON.stringify(this.removeUnchangedProperties(layoutDefinition)));
@@ -206,7 +206,7 @@ export default class Playground extends Component<Props, State> {
this.state.selectedNodePath || []
).reduce(
(node: LayoutRecordT, cv) => node.children.get(cv),
this.state.layoutDefinition
this.state.layoutDefinition,
);
return selectedNode ? selectedNode.children.size : 0;
};
@@ -226,8 +226,7 @@ export default class Playground extends Component<Props, State> {
style={{height, maxHeight: height}}
ref={ref => {
this._containerRef = ref;
}}
>
}}>
<YogaNode
layoutDefinition={layoutDefinition}
selectedNodePath={selectedNodePath}
@@ -252,8 +251,7 @@ export default class Playground extends Component<Props, State> {
) : (
<Button
href={`/playground#${this.getHash()}`}
type="primary"
>
type="primary">
Open Playground
</Button>
)}
@@ -297,7 +295,7 @@ export default class Playground extends Component<Props, State> {
<div>
{this.props.renderSidebar(
layoutDefinition.getIn(getPath(selectedNodePath)),
this.onChangeLayout
this.onChangeLayout,
)}
</div>
{playground}