Phyks (Lucas Verney)
40f6223bd0
* Keep track of pagination in the store * Use Immutable in reducers * Finish i18n, every available strings are now translated in English and French * Add a loading indicator * Premises of API error handling * Better locale negotiation
19 lines
371 B
JavaScript
19 lines
371 B
JavaScript
import Immutable from "immutable";
|
|
|
|
export const tokenRecord = Immutable.Record({
|
|
token: null,
|
|
expires: null
|
|
});
|
|
|
|
export const stateRecord = new Immutable.Record({
|
|
token: tokenRecord,
|
|
username: null,
|
|
endpoint: null,
|
|
rememberMe: false,
|
|
isAuthenticated: false,
|
|
isAuthenticating: false,
|
|
error: null,
|
|
info: null,
|
|
timerID: null
|
|
});
|