mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 09:54:00 +00:00
cleanup backnavigation
This commit is contained in:
@@ -1,12 +1,9 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import Link from "next/link";
|
|
||||||
import { Button, ButtonVariants } from "./Button";
|
import { Button, ButtonVariants } from "./Button";
|
||||||
|
|
||||||
type Props = { hasBack?: boolean };
|
export default function BackButton() {
|
||||||
|
return history && history.length > 1 ? (
|
||||||
export default function BackButton({ hasBack }: Props) {
|
|
||||||
return hasBack || history?.length > 1 ? (
|
|
||||||
<Button
|
<Button
|
||||||
onClick={() => history.back()}
|
onClick={() => history.back()}
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user