-
Notifications
You must be signed in to change notification settings - Fork 0
Auto Tab #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Auto Tab #27
Conversation
| {isAuto && ( | ||
| <> | ||
| <button | ||
| className={`bg-${(currentMovement as ScoutingForm["auto"]["movement"]).trenchPass ? "rose-500" : "slate-800"} m-1 w-32 h-16 px-2`} |
Check warning
Code scanning / ESLint
Disallow type assertions that narrow a type Warning
| onClick={() => { | ||
| setMovement({ | ||
| ...currentMovement, | ||
| trenchPass: !(currentMovement as ScoutingForm["auto"]["movement"]).trenchPass, |
Check warning
Code scanning / ESLint
Disallow type assertions that narrow a type Warning
| Pass Trench | ||
| </button> | ||
| <button | ||
| className={`bg-${(currentMovement as ScoutingForm["auto"]["movement"]).bumpPass ? "rose-500" : "slate-800"} m-1 w-32 h-16 px-2`} |
Check warning
Code scanning / ESLint
Disallow type assertions that narrow a type Warning
| onClick={() => { | ||
| setMovement({ | ||
| ...currentMovement, | ||
| bumpPass: !(currentMovement as ScoutingForm["auto"]["movement"]).bumpPass, |
Check warning
Code scanning / ESLint
Disallow type assertions that narrow a type Warning
| const imageBounds = | ||
| containerRatio > mapAspectRatio | ||
| ? { | ||
| width: bound.height * mapAspectRatio, | ||
| height: bound.height, | ||
| offsetX: (bound.width - bound.height * mapAspectRatio) / HALF_HEIGHT, | ||
| offsetY: 0, | ||
| } | ||
| : { | ||
| width: bound.width, | ||
| height: bound.width / mapAspectRatio, | ||
| offsetX: 0, | ||
| offsetY: (bound.height - bound.width / mapAspectRatio) / HALF_HEIGHT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider using either css or tailwind to do this on the class
No description provided.