Add possibility to edit tactics that takes place on a semi court #37
Merged
maxime.batista
merged 6 commits from editor/half-court
into master
1 year ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'editor/half-court'
Deleting a branch is permanent. It CANNOT be undone. Continue?
import TitleInput from "../components/TitleInput"
import { BasketCourt } from "../components/editor/BasketCourt"
import plainCourt from "../assets/court/court.svg"
The current build system doesn't properly handle CSS/image assets, for instance it is served as
/IQBall/public/court-088e6f4e.svg
onmaxou.dev
.tactic: Tactic
onContentChange: (tactic: TacticContent) => Promise<boolean>
onNameChange: (name: string) => Promise<boolean>
courtType: string
id: number
name: string
content: string
courtType: string
return (
<div
className="court-kind-button"
onClick={() => (location.href = redirect)}>
This doesn't account for the base path (see https://maxou.dev/IQBall/editor/half-court/public/tactic/new/plain for instance).
return new CourtType(CourtType::COURT_HALF);
}
public function name(): string {
It seems that your enum may be better backed by a
string
(and it is also supported by PHP 8.0 enums).}
public function name(): string {
switch ($this->value) {
Cries for PHP 8.0
match
😥we're using php 7.4
57b26e4f1d
toafcdbc2019
1 year ago5a04554c1a
toa27100c799
1 year agoa27100c799
to940d87930a
1 year agob43eb46638
into master 1 year agoReviewers
b43eb46638
.