Skip to content

Commit

Permalink
fix: back button navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
terran6 committed May 24, 2023
1 parent 104965c commit 3961507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/layout/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Page = (props: PropsWithChildren<Props>) => {
{title && (
<header className={styles.header}>
<div className={styles.titleWrapper}>
{backButton && <ArrowBack onClick={() => navigate(-1)} />}
{backButton && <ArrowBack onClick={() => navigate("/")} />}
<h1 className={styles.title}>{title}</h1>
</div>
{extra}
Expand Down

0 comments on commit 3961507

Please sign in to comment.