From 9f7cb6ce33e24a4104fe0e9bea5d9869ba131da0 Mon Sep 17 00:00:00 2001 From: Alex Windett Date: Thu, 3 Nov 2016 15:16:36 +0000 Subject: [PATCH] renaming component --- spikes/graphs-fe/plotly/src/components/index.js | 2 +- .../plotly/src/components/{graph => plotlyGraph}/index.js | 4 ++-- .../plotly/src/components/{graph => plotlyGraph}/plot.js | 0 spikes/graphs-fe/plotly/src/showcase/root.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename spikes/graphs-fe/plotly/src/components/{graph => plotlyGraph}/index.js (93%) rename spikes/graphs-fe/plotly/src/components/{graph => plotlyGraph}/plot.js (100%) diff --git a/spikes/graphs-fe/plotly/src/components/index.js b/spikes/graphs-fe/plotly/src/components/index.js index 5f67d9af..60167bd2 100644 --- a/spikes/graphs-fe/plotly/src/components/index.js +++ b/spikes/graphs-fe/plotly/src/components/index.js @@ -2,5 +2,5 @@ module.exports = { Button: require('./button'), Container: require('./container'), Base: require('./base'), - Graph: require('./graph'), + PlotlyGraph: require('./plotlyGraph'), }; diff --git a/spikes/graphs-fe/plotly/src/components/graph/index.js b/spikes/graphs-fe/plotly/src/components/plotlyGraph/index.js similarity index 93% rename from spikes/graphs-fe/plotly/src/components/graph/index.js rename to spikes/graphs-fe/plotly/src/components/plotlyGraph/index.js index 4078bb1d..7a22b970 100644 --- a/spikes/graphs-fe/plotly/src/components/graph/index.js +++ b/spikes/graphs-fe/plotly/src/components/plotlyGraph/index.js @@ -2,7 +2,7 @@ const React = require('react'); const Plot = require('./plot'); const localData = require('../../../lib/data'); -const Graph = React.createClass({ +const PlotlyGraph = React.createClass({ getInitialState: function() { return this.fetchData(this.props) @@ -61,4 +61,4 @@ const Graph = React.createClass({ } }) -module.exports = Graph; +module.exports = PlotlyGraph; diff --git a/spikes/graphs-fe/plotly/src/components/graph/plot.js b/spikes/graphs-fe/plotly/src/components/plotlyGraph/plot.js similarity index 100% rename from spikes/graphs-fe/plotly/src/components/graph/plot.js rename to spikes/graphs-fe/plotly/src/components/plotlyGraph/plot.js diff --git a/spikes/graphs-fe/plotly/src/showcase/root.js b/spikes/graphs-fe/plotly/src/showcase/root.js index 6c339e7a..70737b42 100644 --- a/spikes/graphs-fe/plotly/src/showcase/root.js +++ b/spikes/graphs-fe/plotly/src/showcase/root.js @@ -5,7 +5,7 @@ const { Button, Container, Base, - Graph + PlotlyGraph } = require('../'); const { @@ -18,7 +18,7 @@ module.exports = () => {

Hello

- +