[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
software bumsil
/
aplikasi
/
peminjaman
/
public
/
extensions
/
choices.js
/
src
/
scripts
/
reducers
/
[
Home
]
File: loading.ts
import { SetIsLoadingAction } from '../actions/misc'; import { State } from '../interfaces/state'; export const defaultState = false; type ActionTypes = SetIsLoadingAction | Record<string, never>; const general = ( state = defaultState, action: ActionTypes = {}, ): State['loading'] => { switch (action.type) { case 'SET_IS_LOADING': { return action.isLoading; } default: { return state; } } }; export default general;