From 9324bf1841b422fc7b739792c590889607f5f616 Mon Sep 17 00:00:00 2001 From: koalasat Date: Mon, 25 Nov 2024 14:23:39 +0100 Subject: [PATCH] Better big screen display --- frontend/src/components/BookTable/BookControl.tsx | 12 ++++++++++++ frontend/static/locales/ca.json | 1 + frontend/static/locales/cs.json | 1 + frontend/static/locales/de.json | 1 + frontend/static/locales/en.json | 1 + frontend/static/locales/es.json | 1 + frontend/static/locales/eu.json | 1 + frontend/static/locales/fr.json | 1 + frontend/static/locales/it.json | 1 + frontend/static/locales/ja.json | 1 + frontend/static/locales/pl.json | 1 + frontend/static/locales/pt.json | 1 + frontend/static/locales/ru.json | 1 + frontend/static/locales/sv.json | 1 + frontend/static/locales/sw.json | 1 + frontend/static/locales/th.json | 1 + frontend/static/locales/zh-SI.json | 1 + frontend/static/locales/zh-TR.json | 1 + 18 files changed, 29 insertions(+) diff --git a/frontend/src/components/BookTable/BookControl.tsx b/frontend/src/components/BookTable/BookControl.tsx index a92f5b3a..c60893a2 100644 --- a/frontend/src/components/BookTable/BookControl.tsx +++ b/frontend/src/components/BookTable/BookControl.tsx @@ -79,19 +79,31 @@ const BookControl = ({ const orderTypeIcon = (value: string): React.ReactNode => { let component = ; + let text = t('ANY'); if (value === 'sell') { component = ; + text = t('Sell'); } else if (value === 'buy') { component = ; + text = t('Buy'); } else if (value === 'swapin') { component = ; + text = t('Swap In'); } else if (value === 'swapout') { component = ; + text = t('swap Out'); } return (
{component} + {width > medium ? ( + + {` ${text}`} + + ) : ( + <> + )}
); }; diff --git a/frontend/static/locales/ca.json b/frontend/static/locales/ca.json index 670b4805..0b432c00 100644 --- a/frontend/static/locales/ca.json +++ b/frontend/static/locales/ca.json @@ -91,6 +91,7 @@ "and use": "i fer servir", "hosted by": "allotjat per", "pay with": "pagar amb", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Afegir filtre", "Amount": "Suma", diff --git a/frontend/static/locales/cs.json b/frontend/static/locales/cs.json index 17105da9..bb02ced5 100644 --- a/frontend/static/locales/cs.json +++ b/frontend/static/locales/cs.json @@ -91,6 +91,7 @@ "and use": "použít", "hosted by": "hosted by", "pay with": "pay with", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Přidat filter", "Amount": "Částka", diff --git a/frontend/static/locales/de.json b/frontend/static/locales/de.json index 5d63d6d5..00194ddc 100644 --- a/frontend/static/locales/de.json +++ b/frontend/static/locales/de.json @@ -91,6 +91,7 @@ "and use": "und verwende", "hosted by": "hosted by", "pay with": "pay with", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Add filter", "Amount": "Menge", diff --git a/frontend/static/locales/en.json b/frontend/static/locales/en.json index f2bc7d02..523f7387 100644 --- a/frontend/static/locales/en.json +++ b/frontend/static/locales/en.json @@ -91,6 +91,7 @@ "and use": "and use", "hosted by": "hosted by", "pay with": "pay with", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Add filter", "Amount": "Amount", diff --git a/frontend/static/locales/es.json b/frontend/static/locales/es.json index c8c8477c..aa2a5555 100644 --- a/frontend/static/locales/es.json +++ b/frontend/static/locales/es.json @@ -91,6 +91,7 @@ "and use": "y usa", "hosted by": "hosted by", "pay with": "paga con", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Añadir filtro", "Amount": "Cantidad", diff --git a/frontend/static/locales/eu.json b/frontend/static/locales/eu.json index 555d7338..4bbad8db 100644 --- a/frontend/static/locales/eu.json +++ b/frontend/static/locales/eu.json @@ -91,6 +91,7 @@ "and use": "eta erabili", "hosted by": "hosted by", "pay with": "pay with", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Gehitu iragazkia", "Amount": "Kopurua", diff --git a/frontend/static/locales/fr.json b/frontend/static/locales/fr.json index b0b631e0..6bed29b8 100644 --- a/frontend/static/locales/fr.json +++ b/frontend/static/locales/fr.json @@ -91,6 +91,7 @@ "and use": "et utiliser", "hosted by": "hosted by", "pay with": "payer avec", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Ajouter filtre", "Amount": "Montant", diff --git a/frontend/static/locales/it.json b/frontend/static/locales/it.json index 93ea69d9..0927c77a 100644 --- a/frontend/static/locales/it.json +++ b/frontend/static/locales/it.json @@ -91,6 +91,7 @@ "and use": "ed usa", "hosted by": "hosted by", "pay with": "paga con", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Aggiungi filtro", "Amount": "Quantità", diff --git a/frontend/static/locales/ja.json b/frontend/static/locales/ja.json index 43e7a3b1..728dbc19 100644 --- a/frontend/static/locales/ja.json +++ b/frontend/static/locales/ja.json @@ -91,6 +91,7 @@ "and use": "そして使用するのは", "hosted by": "hosted by", "pay with": "支払い方法は:", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "フィルタを追加", "Amount": "量", diff --git a/frontend/static/locales/pl.json b/frontend/static/locales/pl.json index 9fcb2b66..1fc6a6f1 100644 --- a/frontend/static/locales/pl.json +++ b/frontend/static/locales/pl.json @@ -91,6 +91,7 @@ "and use": "i użyć", "hosted by": "hosted by", "pay with": "pay with", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Add filter", "Amount": "Ilość", diff --git a/frontend/static/locales/pt.json b/frontend/static/locales/pt.json index cee04adc..5b748881 100644 --- a/frontend/static/locales/pt.json +++ b/frontend/static/locales/pt.json @@ -91,6 +91,7 @@ "and use": "e utilizar", "hosted by": "hospedado por", "pay with": "pagar com", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Adicionar filtro", "Amount": "Quantidade", diff --git a/frontend/static/locales/ru.json b/frontend/static/locales/ru.json index 68709c55..bd11f1be 100644 --- a/frontend/static/locales/ru.json +++ b/frontend/static/locales/ru.json @@ -91,6 +91,7 @@ "and use": "и использовать", "hosted by": "hosted by", "pay with": "оплатить", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Добавить фильтр", "Amount": "Сумма", diff --git a/frontend/static/locales/sv.json b/frontend/static/locales/sv.json index 58f2934f..130d3065 100644 --- a/frontend/static/locales/sv.json +++ b/frontend/static/locales/sv.json @@ -91,6 +91,7 @@ "and use": "och använda", "hosted by": "hosted by", "pay with": "pay with", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Add filter", "Amount": "Summa", diff --git a/frontend/static/locales/sw.json b/frontend/static/locales/sw.json index d866a857..496ee03f 100644 --- a/frontend/static/locales/sw.json +++ b/frontend/static/locales/sw.json @@ -91,6 +91,7 @@ "and use": "na tumia", "hosted by": "hosted by", "pay with": "lipa kwa", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "Ongeza kichujio", "Amount": "Kiasi", diff --git a/frontend/static/locales/th.json b/frontend/static/locales/th.json index ec74624f..362dcfc1 100644 --- a/frontend/static/locales/th.json +++ b/frontend/static/locales/th.json @@ -91,6 +91,7 @@ "and use": "และใช้", "hosted by": "hosted by", "pay with": "pay with", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "เพิ่มตัวกรอง", "Amount": "จำนวน", diff --git a/frontend/static/locales/zh-SI.json b/frontend/static/locales/zh-SI.json index 726dfa45..fc9b5329 100644 --- a/frontend/static/locales/zh-SI.json +++ b/frontend/static/locales/zh-SI.json @@ -91,6 +91,7 @@ "and use": "并使用", "hosted by": "hosted by", "pay with": "支付", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "加筛选", "Amount": "金额", diff --git a/frontend/static/locales/zh-TR.json b/frontend/static/locales/zh-TR.json index de00cb01..cd8168e3 100644 --- a/frontend/static/locales/zh-TR.json +++ b/frontend/static/locales/zh-TR.json @@ -91,6 +91,7 @@ "and use": "並使用", "hosted by": "hosted by", "pay with": "支付", + "swap Out": "swap Out", "#14": "Phrases in components/BookTable/index.tsx", "Add filter": "加篩選", "Amount": "金額",