mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 06:34:15 +00:00
fix: stop double redirect on 'random mii' button
This commit is contained in:
parent
045308dcef
commit
32bcd0ec36
2 changed files with 2 additions and 11 deletions
|
|
@ -1,12 +1,11 @@
|
|||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { redirect } from "next/navigation";
|
||||
import { Icon } from "@iconify/react";
|
||||
|
||||
export default function RandomLink() {
|
||||
return (
|
||||
<Link href={"/random"} onClick={() => redirect("/random")} className="pill button !p-0 h-full aspect-square" data-tooltip="Go to a Random Mii">
|
||||
<Link href={"/random"} className="pill button !p-0 h-full aspect-square" data-tooltip="Go to a Random Mii">
|
||||
<Icon icon="mdi:dice-3" fontSize={28} />
|
||||
</Link>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue