frontend: keep location.hash between tab switches

This commit is contained in:
0x1eef 2024-02-07 22:57:49 -03:00
parent 04766fc515
commit a95c1f6d4b

View file

@ -32,7 +32,7 @@ export function Tabs({ defaultLabel, labels, onChange }: Props) {
return (
<li className={classnames(classNames)}>
<a
href="#"
href={location.hash}
onClick={() => setActive(tab)}
className="block p-2 text-smaller no-underline"
>