From 31055f1d66496198585171b8e1c2892f4cf0a659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:57:54 -0500 Subject: [PATCH] fix: use link for big tank search --- .../components/TankSearch/index.tsx | 183 +++++++++--------- 1 file changed, 95 insertions(+), 88 deletions(-) diff --git a/src/app/tools/tankopedia/components/TankSearch/index.tsx b/src/app/tools/tankopedia/components/TankSearch/index.tsx index 3d3feddfb..0c9213cde 100644 --- a/src/app/tools/tankopedia/components/TankSearch/index.tsx +++ b/src/app/tools/tankopedia/components/TankSearch/index.tsx @@ -14,6 +14,7 @@ import { TextField, } from '@radix-ui/themes'; import { go } from 'fuzzysort'; +import Link from 'next/link'; import { use, useEffect, useMemo, useRef, useState } from 'react'; import { TreeType } from '../../../../../components/Tanks'; import { TANK_CLASSES } from '../../../../../components/Tanks/components/Item/constants'; @@ -807,117 +808,123 @@ export function TankSearch({ compact, onSelect = () => {} }: TankSearchProps) { {!compact && searchResultsPageSlice.map((tank) => ( - onSelect(tank)} - className={styles.listing} + - - - -
- -
-
- - +
+ +
- - {tank.name} + /> +
+ + + + + + {tank.name} + + + + + {TIER_ROMAN_NUMERALS[tank.tier]} - - - {TIER_ROMAN_NUMERALS[tank.tier]} - - - - + + + ))} {compact && (