mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-24 07:01:35 +00:00
Better big screen display
This commit is contained in:
parent
0bd95814ed
commit
9324bf1841
@ -79,19 +79,31 @@ const BookControl = ({
|
|||||||
|
|
||||||
const orderTypeIcon = (value: string): React.ReactNode => {
|
const orderTypeIcon = (value: string): React.ReactNode => {
|
||||||
let component = <CheckBoxOutlineBlankIcon />;
|
let component = <CheckBoxOutlineBlankIcon />;
|
||||||
|
let text = t('ANY');
|
||||||
if (value === 'sell') {
|
if (value === 'sell') {
|
||||||
component = <SendReceiveIcon color='primary' />;
|
component = <SendReceiveIcon color='primary' />;
|
||||||
|
text = t('Sell');
|
||||||
} else if (value === 'buy') {
|
} else if (value === 'buy') {
|
||||||
component = <SendReceiveIcon color='secondary' sx={{ transform: 'scaleX(-1)' }} />;
|
component = <SendReceiveIcon color='secondary' sx={{ transform: 'scaleX(-1)' }} />;
|
||||||
|
text = t('Buy');
|
||||||
} else if (value === 'swapin') {
|
} else if (value === 'swapin') {
|
||||||
component = <SwapCalls color='primary' />;
|
component = <SwapCalls color='primary' />;
|
||||||
|
text = t('Swap In');
|
||||||
} else if (value === 'swapout') {
|
} else if (value === 'swapout') {
|
||||||
component = <SwapCalls color='secondary' />;
|
component = <SwapCalls color='secondary' />;
|
||||||
|
text = t('swap Out');
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap', marginRight: 1 }}>
|
<div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap', marginRight: 1 }}>
|
||||||
{component}
|
{component}
|
||||||
|
{width > medium ? (
|
||||||
|
<Typography sx={{ width: '2em' }} align='right' color='text.secondary'>
|
||||||
|
{` ${text}`}
|
||||||
|
</Typography>
|
||||||
|
) : (
|
||||||
|
<></>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "i fer servir",
|
"and use": "i fer servir",
|
||||||
"hosted by": "allotjat per",
|
"hosted by": "allotjat per",
|
||||||
"pay with": "pagar amb",
|
"pay with": "pagar amb",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Afegir filtre",
|
"Add filter": "Afegir filtre",
|
||||||
"Amount": "Suma",
|
"Amount": "Suma",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "použít",
|
"and use": "použít",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "pay with",
|
"pay with": "pay with",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Přidat filter",
|
"Add filter": "Přidat filter",
|
||||||
"Amount": "Částka",
|
"Amount": "Částka",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "und verwende",
|
"and use": "und verwende",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "pay with",
|
"pay with": "pay with",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Add filter",
|
"Add filter": "Add filter",
|
||||||
"Amount": "Menge",
|
"Amount": "Menge",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "and use",
|
"and use": "and use",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "pay with",
|
"pay with": "pay with",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Add filter",
|
"Add filter": "Add filter",
|
||||||
"Amount": "Amount",
|
"Amount": "Amount",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "y usa",
|
"and use": "y usa",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "paga con",
|
"pay with": "paga con",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Añadir filtro",
|
"Add filter": "Añadir filtro",
|
||||||
"Amount": "Cantidad",
|
"Amount": "Cantidad",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "eta erabili",
|
"and use": "eta erabili",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "pay with",
|
"pay with": "pay with",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Gehitu iragazkia",
|
"Add filter": "Gehitu iragazkia",
|
||||||
"Amount": "Kopurua",
|
"Amount": "Kopurua",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "et utiliser",
|
"and use": "et utiliser",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "payer avec",
|
"pay with": "payer avec",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Ajouter filtre",
|
"Add filter": "Ajouter filtre",
|
||||||
"Amount": "Montant",
|
"Amount": "Montant",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "ed usa",
|
"and use": "ed usa",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "paga con",
|
"pay with": "paga con",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Aggiungi filtro",
|
"Add filter": "Aggiungi filtro",
|
||||||
"Amount": "Quantità",
|
"Amount": "Quantità",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "そして使用するのは",
|
"and use": "そして使用するのは",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "支払い方法は:",
|
"pay with": "支払い方法は:",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "フィルタを追加",
|
"Add filter": "フィルタを追加",
|
||||||
"Amount": "量",
|
"Amount": "量",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "i użyć",
|
"and use": "i użyć",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "pay with",
|
"pay with": "pay with",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Add filter",
|
"Add filter": "Add filter",
|
||||||
"Amount": "Ilość",
|
"Amount": "Ilość",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "e utilizar",
|
"and use": "e utilizar",
|
||||||
"hosted by": "hospedado por",
|
"hosted by": "hospedado por",
|
||||||
"pay with": "pagar com",
|
"pay with": "pagar com",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Adicionar filtro",
|
"Add filter": "Adicionar filtro",
|
||||||
"Amount": "Quantidade",
|
"Amount": "Quantidade",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "и использовать",
|
"and use": "и использовать",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "оплатить",
|
"pay with": "оплатить",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Добавить фильтр",
|
"Add filter": "Добавить фильтр",
|
||||||
"Amount": "Сумма",
|
"Amount": "Сумма",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "och använda",
|
"and use": "och använda",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "pay with",
|
"pay with": "pay with",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Add filter",
|
"Add filter": "Add filter",
|
||||||
"Amount": "Summa",
|
"Amount": "Summa",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "na tumia",
|
"and use": "na tumia",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "lipa kwa",
|
"pay with": "lipa kwa",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "Ongeza kichujio",
|
"Add filter": "Ongeza kichujio",
|
||||||
"Amount": "Kiasi",
|
"Amount": "Kiasi",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "และใช้",
|
"and use": "และใช้",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "pay with",
|
"pay with": "pay with",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "เพิ่มตัวกรอง",
|
"Add filter": "เพิ่มตัวกรอง",
|
||||||
"Amount": "จำนวน",
|
"Amount": "จำนวน",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "并使用",
|
"and use": "并使用",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "支付",
|
"pay with": "支付",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "加筛选",
|
"Add filter": "加筛选",
|
||||||
"Amount": "金额",
|
"Amount": "金额",
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
"and use": "並使用",
|
"and use": "並使用",
|
||||||
"hosted by": "hosted by",
|
"hosted by": "hosted by",
|
||||||
"pay with": "支付",
|
"pay with": "支付",
|
||||||
|
"swap Out": "swap Out",
|
||||||
"#14": "Phrases in components/BookTable/index.tsx",
|
"#14": "Phrases in components/BookTable/index.tsx",
|
||||||
"Add filter": "加篩選",
|
"Add filter": "加篩選",
|
||||||
"Amount": "金額",
|
"Amount": "金額",
|
||||||
|
Loading…
Reference in New Issue
Block a user