Replace Link with nav() on Speakers Back button
All checks were successful
Build and Push / build (push) Successful in 12m43s

This commit is contained in:
KansaiGaijin
2026-07-30 10:45:23 +12:00
parent 0936a5bae2
commit 990276366d

View File

@@ -1,5 +1,5 @@
import { useEffect, useRef, useState } from "react"; import { useEffect, useRef, useState } from "react";
import { Link, useNavigate, useParams } from "react-router-dom"; import { useNavigate, useParams } from "react-router-dom";
import { api } from "../api"; import { api } from "../api";
import { SessionReel, colorFor } from "../components/SessionReel"; import { SessionReel, colorFor } from "../components/SessionReel";
@@ -144,7 +144,7 @@ export default function Speakers() {
return ( return (
<div className="max-w-4xl mx-auto py-16 px-4"> <div className="max-w-4xl mx-auto py-16 px-4">
<Link to="/" className="text-sm text-ink/40 hover:text-brass">&larr; Back</Link> <button onClick={() => nav("/")} className="text-sm text-ink/40 hover:text-brass cursor-pointer">&larr; Back</button>
<h1 className="font-display text-3xl mt-4 mb-2">Name your speakers</h1> <h1 className="font-display text-3xl mt-4 mb-2">Name your speakers</h1>
<p className="text-ink/60 mb-6">Click anywhere on the reel to jump to that moment and hear who's talking.</p> <p className="text-ink/60 mb-6">Click anywhere on the reel to jump to that moment and hear who's talking.</p>