diff --git a/frontend/src/component/feature/view/metric-container.jsx b/frontend/src/component/feature/view/metric-container.jsx index 3fcc984f0a..cb9857e6b3 100644 --- a/frontend/src/component/feature/view/metric-container.jsx +++ b/frontend/src/component/feature/view/metric-container.jsx @@ -1,6 +1,6 @@ import { connect } from 'react-redux'; -import { fetchFeatureMetrics, fetchSeenApps } from '../../../store/feature-metrics-actions'; +import { fetchFeatureMetrics, fetchSeenApps } from '../../../store/feature-metrics/actions'; import MatricComponent from './metric-component'; diff --git a/frontend/src/metrics-poller.js b/frontend/src/metrics-poller.js index 0ffce583de..940e6b4c73 100644 --- a/frontend/src/metrics-poller.js +++ b/frontend/src/metrics-poller.js @@ -1,4 +1,4 @@ -import { fetchFeatureMetrics } from './store/feature-metrics-actions'; +import { fetchFeatureMetrics } from './store/feature-metrics/actions'; class MetricsPoller { constructor(store) { diff --git a/frontend/src/store/feature-metrics-actions.js b/frontend/src/store/feature-metrics/actions.js similarity index 96% rename from frontend/src/store/feature-metrics-actions.js rename to frontend/src/store/feature-metrics/actions.js index 7b4c79889a..1a6405576b 100644 --- a/frontend/src/store/feature-metrics-actions.js +++ b/frontend/src/store/feature-metrics/actions.js @@ -1,4 +1,4 @@ -import api from '../data/feature-metrics-api'; +import api from '../../data/feature-metrics-api'; export const START_FETCH_FEATURE_METRICS = 'START_FETCH_FEATURE_METRICS'; export const RECEIVE_FEATURE_METRICS = 'RECEIVE_FEATURE_METRICS'; diff --git a/frontend/src/store/feature-metrics-store.js b/frontend/src/store/feature-metrics/index.js similarity index 87% rename from frontend/src/store/feature-metrics-store.js rename to frontend/src/store/feature-metrics/index.js index 7b8514e9c6..980ac33a7c 100644 --- a/frontend/src/store/feature-metrics-store.js +++ b/frontend/src/store/feature-metrics/index.js @@ -1,6 +1,6 @@ import { Map as $Map, fromJS } from 'immutable'; -import { RECEIVE_FEATURE_METRICS, RECEIVE_SEEN_APPS } from './feature-metrics-actions'; +import { RECEIVE_FEATURE_METRICS, RECEIVE_SEEN_APPS } from './actions'; const metrics = (state = fromJS({ lastHour: {}, lastMinute: {}, seenApps: {} }), action) => { switch (action.type) { diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index ed68394410..4c66c47506 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -1,7 +1,7 @@ import { combineReducers } from 'redux'; import features from './feature-toggle'; import featureTypes from './feature-type'; -import featureMetrics from './feature-metrics-store'; +import featureMetrics from './feature-metrics'; import strategies from './strategy'; import history from './history'; // eslint-disable-line import archive from './archive';