Can place ball on the court #77

Merged
vivien.dufour merged 14 commits from editor/ball-assign into master 2 years ago
Owner

Also added player and ball remove by drag and drop them out of the court

Also added player and ball remove by drag and drop them out of the court
vivien.dufour added 6 commits 2 years ago
vivien.dufour requested review from yanis.dahmane-bounoua 2 years ago
vivien.dufour requested review from maxime.batista 2 years ago
vivien.dufour requested review from mael.daim 2 years ago
vivien.dufour requested review from samuel.berion 2 years ago
maxime.batista requested changes 2 years ago
export interface BallPieceProps {
onDrop: () => void
pieceRef: RefObject<HTMLDivElement>
export interface CourtBallProps {

Move this in CourtBall.tsx as its only used by this file

Move this in `CourtBall.tsx` as its only used by this file
vivien.dufour marked this conversation as resolved
cursor: pointer;
}
.ball-div:focus-within {

remove this

remove this
vivien.dufour marked this conversation as resolved
justify-content: flex-start;
}
#opponent-rack {

you can factorise allies-rack and opponents-rack :

#allies-rack, #opponent-rack {
    width: 125px;
    min-width: 125px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

#allies-rack {
	justify-content: flex-start;
}

#opponent-rack {
	justify-content: flex-end;
}

you can factorise allies-rack and opponents-rack : ```css #allies-rack, #opponent-rack { width: 125px; min-width: 125px; display: flex; flex-direction: row; align-items: flex-end; } #allies-rack { justify-content: flex-start; } #opponent-rack { justify-content: flex-end; } ```
vivien.dufour marked this conversation as resolved
}
})
return
} else {

the else here is useless as the if above already returns if executed

the else here is useless as the if above already returns if executed
vivien.dufour marked this conversation as resolved
vivien.dufour added 1 commit 2 years ago
continuous-integration/drone/push Build is passing Details
0c73aa9418
apply modifications
vivien.dufour requested review from maxime.batista 2 years ago
maxime.batista approved these changes 2 years ago
vivien.dufour merged commit eb744d0da4 into master 2 years ago
vivien.dufour referenced this issue from a commit 2 years ago
vivien.dufour deleted branch editor/ball-assign 2 years ago

Reviewers

mael.daim was requested for review 2 years ago
yanis.dahmane-bounoua was requested for review 2 years ago
samuel.berion was requested for review 2 years ago
maxime.batista approved these changes 2 years ago
continuous-integration/drone/push Build is passing
The pull request has been merged as eb744d0da4.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: IQBall/Application-Web#77
Loading…
There is no content yet.