Skip to content

Commit

Permalink
Fix landed default value
Browse files Browse the repository at this point in the history
  • Loading branch information
alianza committed May 20, 2024
1 parent a350c7d commit 2076add
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions components/forms/ComboForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const ComboForm = ({ combo, newCombo = true }) => {
const [tricksRef] = useAutoAnimate();
const [form, setForm] = useState({
trickArray: combo.trickArray,
landed: combo.landed || true,
landed: combo.landed,
landedAt: getDate(combo.landedAt) || getDate(),
});
const [searchString, setSearchString] = useState('');
Expand Down Expand Up @@ -225,7 +225,7 @@ const ComboForm = ({ combo, newCombo = true }) => {
<MagnifyingGlassIcon
title="Search for tricks"
onClick={toggleSearch}
className={`hoverStrong h-6 w-6 cursor-pointer ${searchActive ? 'opacity-25' : ''}`}
className={`scale-hover-xl h-6 w-6 cursor-pointer ${searchActive ? 'opacity-25' : ''}`}
/>
</div>
{searchActive && (
Expand Down Expand Up @@ -282,7 +282,7 @@ const ComboForm = ({ combo, newCombo = true }) => {
className="group flex cursor-pointer items-center text-start"
>
<PlusIcon className="h-6 w-6 shrink-0 transition-transform group-hover:scale-125 group-hover:duration-100 group-active:scale-95" />
<span className={`${utilStyles.link} grow py-1 touch:!decoration-transparent`}>{trick.trick}</span>
<span className="underline-hover grow py-1 touch:!decoration-transparent">{trick.trick}</span>
</button>
))
)}
Expand All @@ -293,7 +293,7 @@ const ComboForm = ({ combo, newCombo = true }) => {
className="group flex cursor-pointer items-center"
>
<PlusIcon className="h-6 w-6 shrink-0 transition-transform group-hover:scale-125 group-hover:duration-100 group-active:scale-95" />
<b className={`${utilStyles.link} py-1 group-hover:decoration-inherit group-hover:duration-100`}>
<b className="underline-hover py-1 group-hover:decoration-inherit group-hover:duration-100">
Add new {TRICK_TYPES_MODELS[trickType]}
</b>
<ArrowTopRightOnSquareIcon className="ml-1 h-4 w-4" />
Expand Down
2 changes: 1 addition & 1 deletion components/forms/FlatgroundTrickForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const FlatgroundTrickForm = ({ flatgroundTrick, newFlatgroundTrick = true }) =>
stance: flatgroundTrick.stance,
direction: flatgroundTrick.direction,
rotation: flatgroundTrick.rotation,
landed: flatgroundTrick.landed || true,
landed: flatgroundTrick.landed,
landedAt: getDate(flatgroundTrick.landedAt) || getDate(),
});

Expand Down
2 changes: 1 addition & 1 deletion components/forms/GrindForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function GrindForm({ grind, newGrind = true }) {
preferred_stance: grind.preferred_stance,
stance: grind.stance,
direction: grind.direction,
landed: grind.landed || true,
landed: grind.landed,
landedAt: getDate(grind.landedAt) || getDate(),
});

Expand Down
2 changes: 1 addition & 1 deletion components/forms/ManualForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ManualForm = ({ manual, newManual = true }) => {
const [form, setForm] = useState({
preferred_stance: manual.preferred_stance,
type: manual.type,
landed: manual.landed || true,
landed: manual.landed,
landedAt: getDate(manual.landedAt) || getDate(),
});

Expand Down

0 comments on commit 2076add

Please sign in to comment.