Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update react-pdf to 1.6.1 Closes #1533 #1555

Merged
merged 1 commit into from
Mar 14, 2017

Conversation

Gnafu
Copy link
Contributor

@Gnafu Gnafu commented Mar 14, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 77.069% when pulling d4bf0f6 on Gnafu:pdf_update into ed593e0 on geosolutions-it:master.

@@ -28,7 +28,7 @@ const PrintOption = React.createClass({
};
},
onChange() {
this.props.onChange(this.refs.input.getInputDOMNode().checked);
this.props.onChange(!this.refs.input.props.checked);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you inverting the value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the old one.
getInputDOMNode() just returns null

@@ -101,7 +101,7 @@ let BackgroundSwitcher = React.createClass({
},
render() {
return (
<Grid id={this.props.id} className="BackgroundSwitcherComponent" header={this.props.name} fluid={this.props.fluid}>{this.renderBackgrounds()}</Grid>
<Grid id={this.props.id} className="BackgroundSwitcherComponent" fluid={this.props.fluid}>{this.renderBackgrounds()}</Grid>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is header not needed anymore?

Copy link
Contributor Author

@Gnafu Gnafu Mar 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it ever was, header is not a property of Grid

@@ -48,42 +48,34 @@ describe("Test the PrintPreview component", () => {
expect(node).toExist();
});

it('creates component and loads pdf', (done) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove this test?

Copy link
Contributor Author

@Gnafu Gnafu Mar 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was testing ReactPDF and it is no longer mockable

@Gnafu Gnafu merged commit 057d0a1 into geosolutions-it:master Mar 14, 2017
@Gnafu Gnafu deleted the pdf_update branch March 28, 2017 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants