From a0258445289fef9d8df39889cd17252e22f9f813 Mon Sep 17 00:00:00 2001 From: "vivien.dufour" Date: Tue, 19 Dec 2023 11:19:26 +0100 Subject: [PATCH] fix css + verify and format --- front/components/editor/BallPiece.tsx | 3 ++- front/components/editor/CourtBall.tsx | 2 +- front/components/editor/CourtPlayer.tsx | 14 -------------- front/style/ball.css | 4 +++- front/style/editor.css | 7 +------ 5 files changed, 7 insertions(+), 23 deletions(-) diff --git a/front/components/editor/BallPiece.tsx b/front/components/editor/BallPiece.tsx index 685705e..d27c407 100644 --- a/front/components/editor/BallPiece.tsx +++ b/front/components/editor/BallPiece.tsx @@ -11,4 +11,5 @@ export interface CourtBallProps { export function BallPiece() { return -} \ No newline at end of file +} + diff --git a/front/components/editor/CourtBall.tsx b/front/components/editor/CourtBall.tsx index e050efb..f2c32e6 100644 --- a/front/components/editor/CourtBall.tsx +++ b/front/components/editor/CourtBall.tsx @@ -28,4 +28,4 @@ export function CourtBall({ onMoved, ball, onRemove }: CourtBallProps) { ) -} \ No newline at end of file +} diff --git a/front/components/editor/CourtPlayer.tsx b/front/components/editor/CourtPlayer.tsx index e375c78..a5f9c51 100644 --- a/front/components/editor/CourtPlayer.tsx +++ b/front/components/editor/CourtPlayer.tsx @@ -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() }}>
-<<<<<<< HEAD {hasBall && ( )} -======= - {hasBall && ( onBallDrop(ballPiece.current!.getBoundingClientRect())} - position={{x:0, y: 0}}> -
- -
-
)} ->>>>>>> 20078f8 (can put the ball on the court if we want)
>>>>>> 6b6f448 (fix css, topbar (ball) do not move anymore on drag of a player) } #opponent-rack { @@ -119,6 +116,4 @@ .save-state-saving, .save-state-guest { color: gray; -} - - +} \ No newline at end of file