mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-12 18:59:38 -06:00
* add back button, next with local storaage wip
* handle submission and skip submission logic
* handle showing stored value on same concurrent question type.
* remove console.log
* fix next button not showing, add saving answer on pressing back to local storage
* add temp props to QuestionCondition in preview modal
* add temp props to QuestionCondition in preview modal again...
* update navigation logic
* update survey question preview
* add back-button component
* add back button to formbricks/js
* refactor localStorage functions to lib
* remove unused import
* add form prefilling when reloading forms
* merge main into branch
* Revert "merge main into branch"
This reverts commit 13bc9c06ec.
* rename localStorage key answers->responses
* rename answers -> responses in linkSurvey lib
* when survey page reloaded jump to next question instead of current question
* rename getStoredAnswer -> getStoredResponse
* continue renaming
* continue renaming
* rename answerValue -> responseValue
---------
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
18 lines
375 B
TypeScript
18 lines
375 B
TypeScript
import { Button } from "@formbricks/ui";
|
|
|
|
interface BackButtonProps {
|
|
onClick: () => void;
|
|
}
|
|
|
|
export function BackButton({ onClick }: BackButtonProps) {
|
|
return (
|
|
<Button
|
|
type="button"
|
|
variant="minimal"
|
|
className="mr-auto px-3 py-3 text-base font-medium leading-4 focus:ring-offset-2"
|
|
onClick={() => onClick()}>
|
|
Back
|
|
</Button>
|
|
);
|
|
}
|