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