mirror of
https://github.com/strapi/strapi.git
synced 2025-08-21 15:19:22 +00:00
18 lines
300 B
JavaScript
18 lines
300 B
JavaScript
![]() |
import { fromJS } from 'immutable';
|
||
|
|
||
|
const initialState = fromJS({
|
||
|
currentStep: 'browse',
|
||
|
});
|
||
|
|
||
|
const reducer = (state, action) => {
|
||
|
switch (action.type) {
|
||
|
case 'RESET_PROPS':
|
||
|
return initialState;
|
||
|
default:
|
||
|
return state;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default reducer;
|
||
|
export { initialState };
|