mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
feat: guesser flag icons
This commit is contained in:
1 parent
aadc252e47
commit
9b97d3e27d
2 files changed
+19
-10
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import {
|
||||
asset,
|
||||
SEARCH_KEYS,
|
||||
TankDefinition,
|
||||
TIER_ROMAN_NUMERALS,
|
||||
@@ -110,6 +111,7 @@ export function Guesser() {
|
||||
|
||||
return (
|
||||
<SearchResults.Item
|
||||
key={result.id}
|
||||
onClick={() => {
|
||||
if (!input.current) return;
|
||||
|
||||
@@ -118,6 +120,12 @@ export function Guesser() {
|
||||
setResults(null);
|
||||
}}
|
||||
text={unwrap(result.name)}
|
||||
prefix={
|
||||
<img
|
||||
style={{ width: "1em", height: "1em" }}
|
||||
src={asset(`flags/circle/${result.nation}.webp`)}
|
||||
/>
|
||||
}
|
||||
discriminator={
|
||||
<Flex
|
||||
align="center"
|
||||
|
||||
Reference in new issue
Block a user