mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-09-11 11:50:17 +08:00
website: Add a review step before submitting
to hint to the user that they should reread and check what they have written. Also show numbers for ranked items rather than drag handles in the review step as the items can't be moved in that step.
This commit is contained in:
@@ -14,8 +14,9 @@ interface UnchangedWarningProps {
|
||||
show: boolean;
|
||||
title: string;
|
||||
message: string;
|
||||
continueButtonText: string;
|
||||
onClose: () => void;
|
||||
onSubmitAnyway: () => void;
|
||||
onContinueAnyway: () => void;
|
||||
}
|
||||
|
||||
export const UnchangedWarning = (props: UnchangedWarningProps) => {
|
||||
@@ -32,7 +33,7 @@ export const UnchangedWarning = (props: UnchangedWarningProps) => {
|
||||
<Button variant={"ghost"} onClick={props.onClose}>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button onClick={props.onSubmitAnyway}>Submit anyway</Button>
|
||||
<Button onClick={props.onContinueAnyway}>{props.continueButtonText}</Button>
|
||||
</Flex>
|
||||
</ModalFooter>
|
||||
</ModalContent>
|
||||
|
||||
Reference in New Issue
Block a user