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:
parent
92f9fdc50e
commit
b6582fc891
@ -1,6 +1,6 @@
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import HistoryComponent from './history-component';
|
import HistoryComponent from './history-component';
|
||||||
import { fetchHistory } from './../../store/history-actions';
|
import { fetchHistory } from './../..//store/history/actions';
|
||||||
|
|
||||||
const mapStateToProps = state => {
|
const mapStateToProps = state => {
|
||||||
const history = state.history.get('list').toArray();
|
const history = state.history.get('list').toArray();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import HistoryListToggleComponent from './history-list-toggle-component';
|
import HistoryListToggleComponent from './history-list-toggle-component';
|
||||||
import { fetchHistoryForToggle } from '../../store/history-actions';
|
import { fetchHistoryForToggle } from '../..//store/history/actions';
|
||||||
|
|
||||||
function getHistoryFromToggle(state, toggleName) {
|
function getHistoryFromToggle(state, toggleName) {
|
||||||
if (!toggleName) {
|
if (!toggleName) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import api from '../data/history-api';
|
import api from '../../data/history-api';
|
||||||
import { dispatchAndThrow } from './util';
|
import { dispatchAndThrow } from '../util';
|
||||||
|
|
||||||
export const RECEIVE_HISTORY = 'RECEIVE_HISTORY';
|
export const RECEIVE_HISTORY = 'RECEIVE_HISTORY';
|
||||||
export const ERROR_RECEIVE_HISTORY = 'ERROR_RECEIVE_HISTORY';
|
export const ERROR_RECEIVE_HISTORY = 'ERROR_RECEIVE_HISTORY';
|
@ -1,6 +1,6 @@
|
|||||||
import { List, Map as $Map } from 'immutable';
|
import { List, Map as $Map } from 'immutable';
|
||||||
import { RECEIVE_HISTORY, RECEIVE_HISTORY_FOR_TOGGLE } from './history-actions';
|
import { RECEIVE_HISTORY, RECEIVE_HISTORY_FOR_TOGGLE } from './actions';
|
||||||
import { USER_LOGOUT, USER_LOGIN } from './user/actions';
|
import { USER_LOGOUT, USER_LOGIN } from '../user/actions';
|
||||||
|
|
||||||
function getInitState() {
|
function getInitState() {
|
||||||
return new $Map({ list: new List(), toggles: new $Map() });
|
return new $Map({ list: new List(), toggles: new $Map() });
|
@ -3,7 +3,7 @@ import features from './feature-toggle';
|
|||||||
import featureTypes from './feature-type';
|
import featureTypes from './feature-type';
|
||||||
import featureMetrics from './feature-metrics-store';
|
import featureMetrics from './feature-metrics-store';
|
||||||
import strategies from './strategy';
|
import strategies from './strategy';
|
||||||
import history from './history-store'; // eslint-disable-line
|
import history from './history'; // eslint-disable-line
|
||||||
import archive from './archive';
|
import archive from './archive';
|
||||||
import error from './error';
|
import error from './error';
|
||||||
import settings from './settings';
|
import settings from './settings';
|
||||||
|
Loading…
Reference in New Issue
Block a user