TopBar

TopBar

new TopBar()

Source:
Properties:
Name Type Description
props object
Properties
Name Type Description
currentPage string

Indicate current page

user object

User information

bonus object

Bonus information

isAccountOpen boolean

Indicate is account modal open

bonusLeveling Array

Bonus leveling information

freeBets Array

Free bets information

noBettingTimeCountdown number

Indicate number of seconds for no bet time countdown

leagues Array

All leagues information

selectedLeague object

Selected league information

showNoBetTime boolean

Indicate is no bet time modal showen

roundEnd Time

Time of round ending

liveStart Time

Time of new live start

liveMatchDuration number

Indicate seconds number of live game duration

placebetDisabled boolean

Indicate when to disable placebet

noBettingTime number

Indicate seconds before round end when no betting start

config number

Contain currency string

cnt string

CNT path

gameType string

Game type Classic/Turbo

getTickets function

API call for new tickets

liveFinished function

Remove live game

toggleAccount function

Toggle account modal in the header

disablePlacebet function

Disable placebet button in betslip

openModal function

Open modal

changePage function

Change page

Members

BetsCountDown :boolean

Source:

Reference on BetsCountDown component

Type:
  • boolean

BonusHeader :boolean

Source:

Reference on BonusHeader component

Type:
  • boolean

intervalId :boolean

Source:
Type:
  • boolean

LiveCountDown :boolean

Source:

Reference on LiveCountDown component

Type:
  • boolean

state :object

Source:
Properties:
Name Type Description
isLeagueSelectionOpen boolean
isBonusHeaderOpen boolean
Type:
  • object

Methods

componentDidUpdate(prevProps) → {void}

Source:

Start coundown if data from first round call is fatched. Also close modals when page change and when account modal is open

Parameters:
Name Type Description
prevProps object
Returns:
Type
void

componentWillUnmount() → {void}

Source:

Call clear interval

Returns:
Type
void

openNoBettingModal() → {void}

Source:

Open No Betting Modal

Returns:
Type
void

render() → {view}

Source:
See:

Render

Returns:
Type
view

startInterval() → {void}

Source:

Start all counters: bonus counter, next round start counter, live counter

Returns:
Type
void

toggleBonusHeader(close) → {void}

Source:

Toggle bonus and close other

Parameters:
Name Type Description
close boolean
Returns:
Type
void

toggleLeagueSelectionModal(close) → {void}

Source:

Close other modals to awoid to have 2 in the same time opened

Parameters:
Name Type Description
close boolean
Returns:
Type
void

wereLeaguesUpdated(leagues1, leagues2) → {boolean}

Source:

Check if leagues were enabled/disabled in the meanwhile

Parameters:
Name Type Description
leagues1 Array
leagues2 Array
Returns:
Type
boolean