Methods
componentDidMount() → {void}
Check if selected league exist on live page
Returns:
- Type
- void
goAllLive() → {void}
Redirect to ALL_LIVE page
Returns:
- Type
- void
goMyLive() → {void}
Redirect to MY_LIVE page
Returns:
- Type
- void
render() → {view}
Render
Returns:
- Type
- view
selectLeague(league, index) → {void}
Select league and redirect to LIVE page
Parameters:
| Name | Type | Description |
|---|---|---|
league |
object | Selected league |
index |
number | Index of selected league |
Returns:
- Type
- void
Type Definitions
props
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
currentPage |
string | |
leagues |
Array | |
selectedLeague |
object | |
selectedLeagueIndex |
number | |
showMyLive |
boolean | Indicate is user logged in and user have placed bets |
cnt |
string | |
changePage |
function | |
setSelectedLeague |
function |
Type:
- object