Skip to content

Commit

Permalink
fix(stateless.component): cannot return null in a stateless function
Browse files Browse the repository at this point in the history
  • Loading branch information
kiki-le-singe committed Mar 7, 2016
1 parent e8a158e commit 6461895
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Alert/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PropTypes } from 'react';
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';

const propTypes = {
Expand All @@ -17,7 +17,7 @@ export function Alert(props) {
f7App.alert(statusText, status);
}

return null;
return <noscript />;
}

Alert.propTypes = propTypes;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Indicator/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PropTypes } from 'react';
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';

const propTypes = {
Expand All @@ -25,7 +25,7 @@ export function Indicator(props) {
f7App.hideIndicator();
}

return false;
return <noscript />;
}

Indicator.propTypes = propTypes;
Expand Down

0 comments on commit 6461895

Please sign in to comment.