main
Last change
on this file was d0ef259, checked in by anastasovv <simon@…>, 2 years ago |
Roulette rethought with 1 second update calls
|
-
Property mode
set to
100644
|
File size:
481 bytes
|
Line | |
---|
1 | import React from 'react'
|
---|
2 |
|
---|
3 | import { useSelector } from 'react-redux'
|
---|
4 |
|
---|
5 | const Ball = () => {
|
---|
6 | const playerState = useSelector(state => state.player);
|
---|
7 |
|
---|
8 | return (
|
---|
9 | <>
|
---|
10 | { (playerState.rouletteGame.game.timeToStart > playerState.rouletteGame.game.COUNTDOWN_FROM || playerState.rouletteGame.game.timeToStart <= 0) &&
|
---|
11 | <img id="rouletteBall" src="/images/roulette-ball.png" alt="Roulette ball"/>
|
---|
12 | }
|
---|
13 | </>
|
---|
14 | )
|
---|
15 | }
|
---|
16 |
|
---|
17 | export default Ball |
---|
Note:
See
TracBrowser
for help on using the repository browser.