1
0
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:
Ivar Conradi Østhus 2021-01-06 22:10:28 +01:00
parent b6582fc891
commit b8277f01ac
5 changed files with 5 additions and 5 deletions

View File

@ -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';

View File

@ -1,4 +1,4 @@
import { fetchFeatureMetrics } from './store/feature-metrics-actions';
import { fetchFeatureMetrics } from './store/feature-metrics/actions';
class MetricsPoller {
constructor(store) {

View File

@ -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';

View File

@ -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) {

View File

@ -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';