mock implementstion
This commit is contained in:
parent
93867c7d79
commit
1cf762254c
@ -6,6 +6,7 @@ import GameAction from './Game/GameAction'
|
|||||||
import GameBoard from './Game/GameBoard'
|
import GameBoard from './Game/GameBoard'
|
||||||
import NewGame from './Game/NewGame'
|
import NewGame from './Game/NewGame'
|
||||||
import GameMessage from './Game/GameMessage'
|
import GameMessage from './Game/GameMessage'
|
||||||
|
import Message2Opponent from './Game/Message2Opponent'
|
||||||
|
|
||||||
export default function Game() {
|
export default function Game() {
|
||||||
|
|
||||||
@ -20,6 +21,7 @@ export default function Game() {
|
|||||||
<GameAction />
|
<GameAction />
|
||||||
<GameMessage />
|
<GameMessage />
|
||||||
<GameBoard />
|
<GameBoard />
|
||||||
|
<Message2Opponent />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
6
webapp/src/components/Game/Message2Opponent.css
Normal file
6
webapp/src/components/Game/Message2Opponent.css
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.message2opponent {
|
||||||
|
border-radius: 3px;
|
||||||
|
border-color: lightgray;
|
||||||
|
background-color:violet;
|
||||||
|
width: 70%;
|
||||||
|
}
|
15
webapp/src/components/Game/Message2Opponent.jsx
Normal file
15
webapp/src/components/Game/Message2Opponent.jsx
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import './Message2Opponent.css'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
import { AppContext } from '../../context/app'
|
||||||
|
|
||||||
|
export default function Message2Opponent() {
|
||||||
|
|
||||||
|
const [ctx] = React.useContext(AppContext)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className='message2opponent'>
|
||||||
|
Message to opponent
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user