- Source:
Methods
(static) commonReducer(state, action) → {state}
- Source:
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
currentPage |
string |
<optional> |
Constants.PAGES.LEAGUE_SELECTION
|
|
targetPageAfterLogin |
string |
<optional> |
Constants.PAGES.LEAGUE_SELECTION
|
|
activeModal |
string | null |
<optional> |
null
|
|
isPMOpen |
boolean |
<optional> |
false
|
|
user |
object |
<optional> |
null
|
|
isAccountOpen |
boolean |
<optional> |
false
|
|
bonus |
object |
<optional> |
null
|
|
modalData |
object |
<optional> |
null
|
Contain all props passed to Modal component |
isLoading |
boolean |
<optional> |
true
|
|
loginError |
string | null |
<optional> |
null
|
|
bonusLeveling |
object |
<optional> |
null
|
|
destinations |
object |
<optional> |
null
|
|
cnt |
string |
<optional> |
''
|
|
betslipSettings |
object |
<optional> |
null
|
|
sessionId |
string |
<optional> |
null
|
|
configs |
object |
<optional> |
null
|
|
freeBets |
string |
<optional> |
null
|
|
selectedMenuItem |
string |
<optional> |
null
|
Parameters:
| Name | Type | Description |
|---|---|---|
state |
object | Contain initial and final state of data |
action |
object | Return the action object |
Returns:
- Type
- state
(inner) CHANGE_PAGE(page)
- Source:
[Action Creator] This action is use to change page
Example
changePage(payload)
Parameters:
| Name | Type | Description |
|---|---|---|
page |
string |
(inner) CLEAR_ALL_SELECTIONS()
- Source:
[Action Creator] This action is use close bet slip modal and reset params when user click remove all
Example
clearAllSelecions(payload)
(inner) CLEAR_LOGIN_ERROR()
- Source:
[Action Creator] this action is used to clear login error
(inner) CLOSE_BETSLIP()
- Source:
[Action Creator] This action is use to close betslip modal
Example
closeBetslip(payload)
(inner) CLOSE_MODAL()
- Source:
[Action Creator] This action is use to close modal
Example
closeModal(payload)
(inner) FETCH_ROUND_SUCCESS()
- Source:
[Received Data] This action is use to redirect on live page when live game is start
(inner) GET_INIT_SUCCESS()
- Source:
[Received Data] This action is use to setup initial data
(inner) GET_ROUND_SUCCESS()
- Source:
[Received Data] This action is use redirect on live if live is in progress
(inner) GET_ROUND_SUCCESS()
- Source:
[Received Data] This action is use to redirect on live if live is in progress
(inner) GET_ROUND_SUCCESS()
- Source:
[Received Data] This action is use to redirect on odds page
(inner) GO_TO_LOGIN()
- Source:
[Action Creator] This action is use to redirect user on Login page
Example
goToLogin(payload)
(inner) GO_TO_MY_ACCOUNT_MENU()
- Source:
[Received Data] This action is use to clear account section
(inner) GO_TO_MY_ACCOUNT_MENU_SUCCESS(selectedItem)
- Source:
[Action Creator] This action is use to go to my account menu page with selected item
Example
goToMyAccountMenu(payload)
Parameters:
| Name | Type | Description |
|---|---|---|
selectedItem |
string |
(inner) LOGIN_ERROR()
- Source:
[Received Data] This action is use to set login error message
(inner) LOGOUT_SUCCESS()
- Source:
[Received Data] This action is use to remove user data after logout
(inner) OPEN_MODAL(modal, props)
- Source:
[Action Creator] This action is use to close modal
Example
openModal(payload)
Parameters:
| Name | Type | Description |
|---|---|---|
modal |
string | |
props |
object |
(inner) PLACEBET_ERROR_LOGIN()
- Source:
[Received Data] This action is use to redirect user on login page
(inner) SELECT_LEAGUE()
- Source:
[Action Creator] This action is use to close Push Menu when league is changed
Example
setSelectedLeague(payload)
(inner) SET_FREE_BETS()
- Source:
[Received Data] This action is use set free bets data
(inner) SET_LOADER()
- Source:
[Received Data] This action is use to toggle loader on bets page
(inner) SET_LOYALTY()
- Source:
[Received Data] This action is use to setup user bonus data
(inner) SET_USER_DATA()
- Source:
[Received Data] This action is use to set user data after login and after check session
(inner) SHOW_ERROR_MODAL()
- Source:
[Received Data] This action is use to set session expired modal
(inner) TOGGLE_ACCOUNT()
- Source:
[Action Creator] This action is use to toggle Account Menu from the header
Example
toggleAccount(payload)
(inner) TOGGLE_BETSLIP()
- Source:
[Action Creator] This action is use to toggle betslip modal
Example
toggleBetslip(payload)
(inner) TOGGLE_PM()
- Source:
[Action Creator] This action is use to toggle Push Menu on the left side
Example
togglePM(payload)
(inner) UPDATE_BALANCE()
- Source:
[Received Data] This action is use to update user balance
(inner) UPDATE_LAST_UPDATED_BALANCE_TIMESTAMP()
- Source:
[Received Data] This action is use to update last updated timestamp