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