main
Last change
on this file since aac3b2b was ace7865, checked in by anastasovv <simon@…>, 2 years ago |
Finished Roulette
|
-
Property mode
set to
100644
|
File size:
508 bytes
|
Line | |
---|
1 | import React from 'react'
|
---|
2 |
|
---|
3 | import { useSelector } from 'react-redux';
|
---|
4 |
|
---|
5 | const CoinOnTable = () => {
|
---|
6 | const styleState = useSelector(state => state.style);
|
---|
7 |
|
---|
8 | return (
|
---|
9 | <>
|
---|
10 | {styleState.roulette.showCoin && <img id="coinOnTable" src="/gold-coin.cur" alt="Gold coin" style={{zIndex: 20, position: 'absolute', left: `${styleState.roulette.coinPlaced.x}px`, top: `${styleState.roulette.coinPlaced.y}px`, transform: 'translate(-50%, -50%)'}}/>}
|
---|
11 | </>
|
---|
12 | )
|
---|
13 | }
|
---|
14 |
|
---|
15 | export default CoinOnTable |
---|
Note:
See
TracBrowser
for help on using the repository browser.