Convert button to NavLink for Random Reel in App.tsx
This commit is contained in:
@@ -34,9 +34,16 @@ export default function App() {
|
||||
>
|
||||
New Random Quiz
|
||||
</NavLink>
|
||||
<button className="link nav-link-btn" onClick={startRandomReel}>
|
||||
<NavLink
|
||||
to="/entry/random"
|
||||
className={({ isActive }) => (isActive ? 'link active' : 'link')}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
startRandomReel();
|
||||
}}
|
||||
>
|
||||
Random Reel
|
||||
</button>
|
||||
</NavLink>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user