mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: prevent defailt on clicking select all link
This commit is contained in:
1 parent
700bb544a3
commit
031c1948e7
1 file changed
+3
@@ -161,6 +161,9 @@ export function TankCard({ tank, onSelect }: TankCardProps) {
|
||||
<Link
|
||||
className={styles.link}
|
||||
href={onSelect ? '#' : `/tools/tankopedia/${tank.id}`}
|
||||
onClick={(event) => {
|
||||
if (onSelect) event.preventDefault();
|
||||
}}
|
||||
>
|
||||
<img alt={tank.name} src={tankIcon(tank.id)} className={styles.image} />
|
||||
|
||||
|
||||
Reference in new issue
Block a user