pass Kifu to appropriate PlayerArea
This commit is contained in:
parent
aed378c021
commit
8414d13949
3 changed files with 9 additions and 1 deletions
|
@ -2,7 +2,11 @@ import React from "react";
|
|||
import "./Kifu.scss";
|
||||
|
||||
const Kifu = ({ ...props }) => {
|
||||
return <></>;
|
||||
return (
|
||||
<>
|
||||
<p>Kifu</p>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Kifu;
|
||||
|
|
|
@ -6,6 +6,7 @@ const PlayerArea = ({
|
|||
handlePassClick,
|
||||
playerMeta,
|
||||
turn,
|
||||
Kifu,
|
||||
}) => {
|
||||
const { stones, player, rank, captures } = playerMeta;
|
||||
const isTurn =
|
||||
|
@ -32,6 +33,7 @@ const PlayerArea = ({
|
|||
>
|
||||
<p>{bowlText()}</p>
|
||||
</div>
|
||||
{Kifu}
|
||||
<div
|
||||
className={`player-container__name-space player-container__name-space--${stones}`}
|
||||
>
|
||||
|
|
|
@ -5,6 +5,7 @@ import "./Game.scss";
|
|||
import Logo from "../../components/Display/Logo/Logo";
|
||||
import Board from "../../components/GameUI/Board/Board";
|
||||
import PlayerArea from "../../components/GameUI/PlayerArea/PlayerArea";
|
||||
import Kifu from "../../components/GameUI/Kifu/Kifu";
|
||||
|
||||
const Game = (props) => {
|
||||
const { state, dispatch } = props;
|
||||
|
@ -139,6 +140,7 @@ const Game = (props) => {
|
|||
? playerWhiteMeta
|
||||
: playerBlackMeta
|
||||
}
|
||||
Kifu={<Kifu {...props} />}
|
||||
turn={state?.meta?.turn}
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue