1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 07:10:05 +02:00

renaming component

This commit is contained in:
Alex Windett 2016-11-03 15:16:36 +00:00 committed by Sérgio Ramos
parent 23f75a5f7e
commit 9f7cb6ce33
4 changed files with 5 additions and 5 deletions

View File

@ -2,5 +2,5 @@ module.exports = {
Button: require('./button'), Button: require('./button'),
Container: require('./container'), Container: require('./container'),
Base: require('./base'), Base: require('./base'),
Graph: require('./graph'), PlotlyGraph: require('./plotlyGraph'),
}; };

View File

@ -2,7 +2,7 @@ const React = require('react');
const Plot = require('./plot'); const Plot = require('./plot');
const localData = require('../../../lib/data'); const localData = require('../../../lib/data');
const Graph = React.createClass({ const PlotlyGraph = React.createClass({
getInitialState: function() { getInitialState: function() {
return this.fetchData(this.props) return this.fetchData(this.props)
@ -61,4 +61,4 @@ const Graph = React.createClass({
} }
}) })
module.exports = Graph; module.exports = PlotlyGraph;

View File

@ -5,7 +5,7 @@ const {
Button, Button,
Container, Container,
Base, Base,
Graph PlotlyGraph
} = require('../'); } = require('../');
const { const {
@ -18,7 +18,7 @@ module.exports = () => {
<Base> <Base>
<Container> <Container>
<p>Hello</p> <p>Hello</p>
<Graph /> <PlotlyGraph />
</Container> </Container>
</Base> </Base>
</AppContainer> </AppContainer>