mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-05 00:49:57 -06:00
* added intro and surveySelect page * added home page and wrapper component * added spreadsheet select * added data write functionality and added integration schema model * improved UX * reworked UI * added google sheet integration * removed some unused code * added user email * UI tweaks * fixed build issues and made added question to top of spreadsheets * adds refreshSheets and added empty survey/spreadsheets text * restored pnpm-lock * added duplicate sheet warning * move process.env to t3env * move migration * update docs link, add note to show that sheets integration is not configured * Add simple docs page for google-sheets * added session check * restored pnpm-lock * Merge branch 'main' of github.com:formbricks/formbricks into Integration/Google-sheet * added google sheet env variables to runtimeEnv --------- Co-authored-by: Johannes <johannes@formbricks.com> Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
23 lines
488 B
TypeScript
23 lines
488 B
TypeScript
"use client";
|
|
|
|
import { BackIcon } from "@formbricks/ui";
|
|
import { useRouter } from "next/navigation";
|
|
|
|
export default function GoBackButton({ url }: { url?: string }) {
|
|
const router = useRouter();
|
|
return (
|
|
<button
|
|
className="inline-flex pt-5 text-sm text-slate-500"
|
|
onClick={() => {
|
|
if (url) {
|
|
router.push(url);
|
|
return;
|
|
}
|
|
router.back();
|
|
}}>
|
|
<BackIcon className="mr-2 h-5 w-5" />
|
|
Back
|
|
</button>
|
|
);
|
|
}
|