|
|
|
@ -1,10 +1,6 @@
|
|
|
|
|
import { RefObject, useRef } from "react"
|
|
|
|
|
import "../../style/player.css"
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
import { BallPiece } from "./BallPiece"
|
|
|
|
|
=======
|
|
|
|
|
import {BallPiece} from "./BallPiece"
|
|
|
|
|
>>>>>>> 20078f8 (can put the ball on the court if we want)
|
|
|
|
|
import Draggable from "react-draggable"
|
|
|
|
|
import { PlayerPiece } from "./PlayerPiece"
|
|
|
|
|
import { Player } from "../../tactic/Player"
|
|
|
|
@ -71,7 +67,6 @@ export default function CourtPlayer({
|
|
|
|
|
if (e.key == "Delete") onRemove()
|
|
|
|
|
}}>
|
|
|
|
|
<div className="player-selection-tab">
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
{hasBall && (
|
|
|
|
|
<Draggable
|
|
|
|
|
nodeRef={ballPiece}
|
|
|
|
@ -86,15 +81,6 @@ export default function CourtPlayer({
|
|
|
|
|
</div>
|
|
|
|
|
</Draggable>
|
|
|
|
|
)}
|
|
|
|
|
=======
|
|
|
|
|
{hasBall && (<Draggable nodeRef={ballPiece}
|
|
|
|
|
onStop={() => onBallDrop(ballPiece.current!.getBoundingClientRect())}
|
|
|
|
|
position={{x:0, y: 0}}>
|
|
|
|
|
<div ref={ballPiece}>
|
|
|
|
|
<BallPiece />
|
|
|
|
|
</div>
|
|
|
|
|
</Draggable>)}
|
|
|
|
|
>>>>>>> 20078f8 (can put the ball on the court if we want)
|
|
|
|
|
</div>
|
|
|
|
|
<PlayerPiece
|
|
|
|
|
team={player.team}
|
|
|
|
|