mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-03 01:18:43 +02:00
* feat: add useStrategiesApi hook * refactor: remove redux from strategies component * refactor: CreateStrategy Component * fix: remove ts errors * refactor: change strategy-detail to functional component * refactor: get strategy name from params * refactor: use features hook and refactor toggle list link * refactor: StrategiesList * refactor: fix delete strategy function * fix: ts errors * refactor: CreateStrategy to StrategyForm * feat: add toast for StrategyForm * refactor: add StrategyView and delete old component * refactor: StrategyDetails and clean unused files * fix: cleanup unused code * fix: add await * fix: remove unused stores Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
14 lines
388 B
JavaScript
14 lines
388 B
JavaScript
import api from './api';
|
|
import { dispatchError } from '../util';
|
|
|
|
export const RECEIVE_BOOTSTRAP = 'RECEIVE_CONFIG';
|
|
export const ERROR_RECEIVE_BOOTSTRAP = 'ERROR_RECEIVE_CONFIG';
|
|
|
|
export function fetchUiBootstrap() {
|
|
return dispatch =>
|
|
api
|
|
.fetchUIBootstrap()
|
|
.then(json => {})
|
|
.catch(dispatchError(dispatch, ERROR_RECEIVE_BOOTSTRAP));
|
|
}
|