From 97cd218796b6c44c335c07e7167a9f1daea6c3b8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com>
Date: Sat, 4 May 2024 16:28:12 -0500
Subject: [PATCH] feat: image alts
---
src/app/tools/compare/page.tsx | 11 +++++++++++
src/app/tools/session/page.tsx | 1 +
src/app/tools/statistics/components/Day.tsx | 1 +
.../components/Characteristics/components/Modules.tsx | 2 ++
.../[id]/components/Characteristics/index.tsx | 1 +
.../[id]/components/Model/TechTreeSection.tsx | 4 ++++
.../[id]/components/Model/components/Options.tsx | 3 +++
.../QuickInputs/components/QuickEquipmentButton.tsx | 1 +
src/app/tools/tankopedia/[id]/components/Title.tsx | 1 +
src/app/tools/tankopedia/[id]/components/Videos.tsx | 6 +++---
.../TankSearch/components/Options/index.tsx | 2 ++
.../tools/tankopedia/components/TankSearch/index.tsx | 3 +++
src/commands/link.tsx | 3 +++
src/commands/rating.tsx | 1 +
src/commands/replay.tsx | 1 +
src/commands/research.tsx | 9 +++++++++
src/components/Breakdown/components/Row.tsx | 1 +
src/components/Breakdown/components/RowStat.tsx | 1 +
src/components/DeltaCaret.tsx | 1 +
src/components/Flag.tsx | 2 +-
src/components/Leaderboard/components/Item.tsx | 2 ++
.../ModuleButtons/GenericTankComponentButton.tsx | 1 +
src/components/SmallTankIcon.tsx | 1 +
src/components/Tanks/components/Item/index.tsx | 2 ++
src/components/TitleBar.tsx | 1 +
25 files changed, 58 insertions(+), 4 deletions(-)
diff --git a/src/app/tools/compare/page.tsx b/src/app/tools/compare/page.tsx
index ee2e3fd3f..8fac4e87f 100644
--- a/src/app/tools/compare/page.tsx
+++ b/src/app/tools/compare/page.tsx
@@ -815,6 +815,7 @@ export default function Page() {
] as const
).map((module, index) => (
{provisions.map((provision, index) => (
{consumables.map((consumable, index) => (
-
-
+
Review videos
@@ -27,6 +26,7 @@ export function Videos() {
target="_blank"
>
@@ -124,6 +125,7 @@ export function Options() {
}
>
diff --git a/src/app/tools/tankopedia/components/TankSearch/index.tsx b/src/app/tools/tankopedia/components/TankSearch/index.tsx
index c0473165c..e66a765d7 100644
--- a/src/app/tools/tankopedia/components/TankSearch/index.tsx
+++ b/src/app/tools/tankopedia/components/TankSearch/index.tsx
@@ -910,6 +910,7 @@ export function TankSearch({
}}
>
((resolve) => {
}}
>
((resolve) => {
}}
>
((resolve) => {
>
{clanAccountInfo?.clan ? (
((resolve) => {
}}
>
((resolve) => {
}}
>
((resolve) => {
}}
>
((resolve) => {
}}
>
((resolve) => {
}}
>
((resolve) => {
}}
>
((resolve) => {
}}
>
((resolve) => {
}}
>
((resolve) => {
}}
>
((resolve) => {
}}
>
{type === 'tank' && tankType !== undefined && (
diff --git a/src/components/Breakdown/components/RowStat.tsx b/src/components/Breakdown/components/RowStat.tsx
index 799bde959..7ba8935a9 100644
--- a/src/components/Breakdown/components/RowStat.tsx
+++ b/src/components/Breakdown/components/RowStat.tsx
@@ -48,6 +48,7 @@ export function RowStat({
>
{percentile === undefined && delta !== undefined && delta !== 0 && (
0 ? 'Increase' : 'Decrease'}
src={
(delta ?? 0) > 0
? 'https://i.imgur.com/qbjiXa1.png'
diff --git a/src/components/DeltaCaret.tsx b/src/components/DeltaCaret.tsx
index 9e2126c25..15c1ae8aa 100644
--- a/src/components/DeltaCaret.tsx
+++ b/src/components/DeltaCaret.tsx
@@ -5,6 +5,7 @@ interface DeltaCaretProps {
export function DeltaCaret({ delta }: DeltaCaretProps) {
return (
0 ? 'Increase' : 'Decrease'}
style={{
width: 16,
height: 16,
diff --git a/src/components/Flag.tsx b/src/components/Flag.tsx
index 99214af79..63c16fcbc 100644
--- a/src/components/Flag.tsx
+++ b/src/components/Flag.tsx
@@ -13,7 +13,7 @@ export function Flag({ nation }: FlagProps) {
overflow: 'hidden',
}}
>
-
+
);
}
diff --git a/src/components/Leaderboard/components/Item.tsx b/src/components/Leaderboard/components/Item.tsx
index e863233ac..117db73d8 100644
--- a/src/components/Leaderboard/components/Item.tsx
+++ b/src/components/Leaderboard/components/Item.tsx
@@ -90,6 +90,7 @@ export function Item({
}}
>
0 ? 'Increase' : 'Decrease'}
style={{
width: 8,
height: 8,
@@ -139,6 +140,7 @@ export function Item({
)}
{deltaScore !== 0 && deltaScore !== undefined && (
0 ? 'Increase' : 'Decrease'}
style={{
width: 8,
height: 8,
diff --git a/src/components/ModuleButtons/GenericTankComponentButton.tsx b/src/components/ModuleButtons/GenericTankComponentButton.tsx
index a8057673c..d4172a9e8 100644
--- a/src/components/ModuleButtons/GenericTankComponentButton.tsx
+++ b/src/components/ModuleButtons/GenericTankComponentButton.tsx
@@ -25,6 +25,7 @@ export function GenericTankComponentButton({
}}
>
{tankType && (
@@ -61,6 +62,7 @@ export function Item({ tankType, name, treeType }: ItemProps) {
{/* {image && (
// TODO: remove hardcoded dimensions when satori fixes non-width unloadable images
{image && (