rce: react-codemod/transforms/pure-component

refs: CORE-1414

this is just the result of running:
https://github.com/reactjs/react-codemod#pure-component

test plan:
* nothing should actually change when running the demo

Change-Id: Idce33764aaa9f19e3b430d75f577e4ff7149a892
Reviewed-on: https://gerrit.instructure.com/149944
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
This commit is contained in:
Ryan Shaw 2018-05-10 16:44:20 -06:00
parent a0b73ca00d
commit 806b8f918a
1 changed files with 10 additions and 12 deletions

View File

@ -23,18 +23,16 @@ import formatMessage from "../../format-message";
import ScreenReaderContent from "@instructure/ui-core/lib/components/ScreenReaderContent";
import { StyleSheet, css } from "aphrodite";
class Loading extends Component {
render() {
var className = (css(styles.loading) + " " + this.props.className).trim();
return (
<span className={className}>
<ScreenReaderContent>{formatMessage("Loading...")}</ScreenReaderContent>
<span className={css(styles.dot, styles.dot0)} />
<span className={css(styles.dot, styles.dot1)} />
<span className={css(styles.dot, styles.dot2)} />
</span>
);
}
function Loading(props) {
var className = (css(styles.loading) + " " + props.className).trim();
return (
<span className={className}>
<ScreenReaderContent>{formatMessage("Loading...")}</ScreenReaderContent>
<span className={css(styles.dot, styles.dot0)} />
<span className={css(styles.dot, styles.dot1)} />
<span className={css(styles.dot, styles.dot2)} />
</span>
);
}
Loading.propTypes = {