Can place ball on the court #77

Merged
vivien.dufour merged 14 commits from editor/ball-assign into master 1 year 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 1 year ago
vivien.dufour requested review from yanis.dahmane-bounoua 1 year ago
vivien.dufour requested review from maxime.batista 1 year ago
vivien.dufour requested review from mael.daim 1 year ago
vivien.dufour requested review from samuel.berion 1 year ago
maxime.batista requested changes 1 year 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 1 year ago
continuous-integration/drone/push Build is passing Details
0c73aa9418
apply modifications
vivien.dufour requested review from maxime.batista 1 year ago
maxime.batista approved these changes 1 year ago
vivien.dufour merged commit eb744d0da4 into master 1 year ago
vivien.dufour referenced this issue from a commit 1 year ago
vivien.dufour deleted branch editor/ball-assign 1 year ago

Reviewers

mael.daim was requested for review 1 year ago
yanis.dahmane-bounoua was requested for review 1 year ago
samuel.berion was requested for review 1 year ago
maxime.batista approved these changes 1 year 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.