1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: move history to folder

This commit is contained in:
Ivar Conradi Østhus 2021-01-06 22:07:20 +01:00
parent 92f9fdc50e
commit b6582fc891
5 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
import { connect } from 'react-redux';
import HistoryComponent from './history-component';
import { fetchHistory } from './../../store/history-actions';
import { fetchHistory } from './../..//store/history/actions';
const mapStateToProps = state => {
const history = state.history.get('list').toArray();

View File

@ -1,6 +1,6 @@
import { connect } from 'react-redux';
import HistoryListToggleComponent from './history-list-toggle-component';
import { fetchHistoryForToggle } from '../../store/history-actions';
import { fetchHistoryForToggle } from '../..//store/history/actions';
function getHistoryFromToggle(state, toggleName) {
if (!toggleName) {

View File

@ -1,5 +1,5 @@
import api from '../data/history-api';
import { dispatchAndThrow } from './util';
import api from '../../data/history-api';
import { dispatchAndThrow } from '../util';
export const RECEIVE_HISTORY = 'RECEIVE_HISTORY';
export const ERROR_RECEIVE_HISTORY = 'ERROR_RECEIVE_HISTORY';

View File

@ -1,6 +1,6 @@
import { List, Map as $Map } from 'immutable';
import { RECEIVE_HISTORY, RECEIVE_HISTORY_FOR_TOGGLE } from './history-actions';
import { USER_LOGOUT, USER_LOGIN } from './user/actions';
import { RECEIVE_HISTORY, RECEIVE_HISTORY_FOR_TOGGLE } from './actions';
import { USER_LOGOUT, USER_LOGIN } from '../user/actions';
function getInitState() {
return new $Map({ list: new List(), toggles: new $Map() });

View File

@ -3,7 +3,7 @@ import features from './feature-toggle';
import featureTypes from './feature-type';
import featureMetrics from './feature-metrics-store';
import strategies from './strategy';
import history from './history-store'; // eslint-disable-line
import history from './history'; // eslint-disable-line
import archive from './archive';
import error from './error';
import settings from './settings';