mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
renaming component
This commit is contained in:
parent
23f75a5f7e
commit
9f7cb6ce33
@ -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'),
|
||||||
};
|
};
|
||||||
|
@ -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;
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user