-
Notifications
You must be signed in to change notification settings - Fork 16
FIXED : While selecting any answer the space bar hit showing question is SKIPPED instead of telling INCORRECT ANSWER #72
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: v0.10.8
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ type ActionButtonsProps = { | |
| handleSubmit?: (() => void) | undefined; | ||
| handleExplainationClick: () => void; | ||
| isCompatible: boolean | undefined; | ||
| hasSelection?: boolean; | ||
| }; | ||
|
|
||
| const ActionButtons = ({ | ||
|
|
@@ -23,6 +24,7 @@ const ActionButtons = ({ | |
| handleSubmit, | ||
| handleExplainationClick, | ||
| isCompatible, | ||
| hasSelection, | ||
| }: ActionButtonsProps) => { | ||
| return ( | ||
| <div className="flex fixed sm:static bottom-0 left-0 w-full z-30 p-2 gap-1 flex-row justify-between items-center bg-white dark:bg-zinc-900 border-t border-border-primary dark:border-border-primary-dark"> | ||
|
|
@@ -56,7 +58,7 @@ const ActionButtons = ({ | |
| > | ||
| <Eye className="inline text-lg" /> | ||
| <span className="hidden md:inline ml-2"> | ||
| Submit <span className="font-mono">[⎵/↵]</span> | ||
| Submit {hasSelection && <span className="font-mono">[⎵/↵]</span>} | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This just makes it does not appear until the answer is not selected but it will still work regardless keeping this does not make sense I think. Instead what we can do is disable the Submit button until something is selected or typed in case of NAT and keep the Show Answer as always working cause that is the surrender button. This will be better UX. Otherwise the thing is already fixed.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay - I am on to it ... i'll let you know after modifying |
||
| </span> | ||
| </Button> | ||
| <Button | ||
|
|
@@ -67,7 +69,7 @@ const ActionButtons = ({ | |
| > | ||
| <Flag className="inline text-lg" /> | ||
| <span className="hidden md:inline ml-2"> | ||
| Show Answer <span className="font-mono">[⎵/↵]</span> | ||
| Show Answer {!hasSelection && <span className="font-mono">[⎵/↵]</span>} | ||
| </span> | ||
| </Button> | ||
| </> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.