mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: move feature-metrics store to its own folder
This commit is contained in:
parent
b6582fc891
commit
b8277f01ac
@ -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';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { fetchFeatureMetrics } from './store/feature-metrics-actions';
|
||||
import { fetchFeatureMetrics } from './store/feature-metrics/actions';
|
||||
|
||||
class MetricsPoller {
|
||||
constructor(store) {
|
||||
|
@ -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';
|
@ -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) {
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user