Skip to content

Commit

Permalink
fix: "stop slideshow" correctly navigates to home
Browse files Browse the repository at this point in the history
  • Loading branch information
Azganoth committed Aug 13, 2023
1 parent ded219f commit 9a0c0fb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/_components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ export default function Header({ action }: { action: 'start' | 'stop' }) {
return (
<header className={styles.header}>
<Logo className={styles.logo} />
<Link
className={styles.slidershow}
href={canStop ? '/' : '/starry-night'}
>
<a className={styles.slidershow} href={canStop ? '/' : '/starry-night'}>
{canStop ? 'Stop' : 'Start'} slideshow
</Link>
</a>
</header>
);
}

0 comments on commit 9a0c0fb

Please sign in to comment.