Skip to content

Issue 639 ✨ feature design hide other pairs and cancel all orders buttons #678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions components/Wallet/Table/OpenOrdersTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const OrderCancelButton = styled.button`
color: inherit;

&:hover {
background: ${({ theme }) => theme.palette.red['500']};
background: ${({ theme }) => theme.palette.blue['700']};
color: ${({ theme }) => theme.palette.gray['000']};
}
`

Expand Down Expand Up @@ -152,7 +153,7 @@ export function OpenOrdersTable({ orders: _orders }) {
Cell: DefaultCell
},
{
Header: '',
Header: t('cancel-all'),
accessor: 'cancel',
Cell: OrderCancelCell,
disableSortBy: true
Expand Down
3 changes: 2 additions & 1 deletion locales/ch/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "出了些问题",
"name": "名称",
"buy": "买",
"sell": "卖"
"sell": "卖",
"cancel-all": "全部取消"
}
3 changes: 2 additions & 1 deletion locales/ct/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Alguna cosa ha anat malament.",
"name": "Nom",
"buy": "Comprar",
"sell": "Vendre"
"sell": "Vendre",
"cancel-all": "Cancel·la-ho tot"
}
5 changes: 3 additions & 2 deletions locales/de/orders.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"open-orders": "Offene Orders",
"open-orders": "Åben ordre",
"order-history": "Order Historie",
"assets": "Depotbestand",
"date": "Datum",
Expand All @@ -21,5 +21,6 @@
"error": "Etwas ist Schiefgelaufen.",
"name": "Name",
"buy": "Kaufen",
"sell": "Verkaufen"
"sell": "Verkaufen",
"cancel-all": "Annuller alle"
}
3 changes: 2 additions & 1 deletion locales/en/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Something went wrong.",
"name": "Name",
"buy": "Buy",
"sell": "Sell"
"sell": "Sell",
"cancel-all": "Cancel All"
}
3 changes: 2 additions & 1 deletion locales/es/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Something went wrong.",
"name": "nombre",
"buy": "comprar",
"sell": "vender"
"sell": "vender",
"cancel-all": "Cancelalo todo"
}
3 changes: 2 additions & 1 deletion locales/fr/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Une erreur s'est produite.",
"name": "NOM",
"buy": "ACHETER",
"sell": "VENDRE"
"sell": "VENDRE",
"cancel-all": "Annuler tout"
}
3 changes: 2 additions & 1 deletion locales/hu/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Valami hiba történt",
"name": "NÉV",
"buy": "VÉTEL",
"sell": "ELADÁS"
"sell": "ELADÁS",
"cancel-all": "Összes törlése"
}
3 changes: 2 additions & 1 deletion locales/id/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Ada kesalahan.",
"name": "NAMA",
"buy": "BELI",
"sell": "JUAL"
"sell": "JUAL",
"cancel-all": "Batalkan Semua"
}
3 changes: 2 additions & 1 deletion locales/in/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "कुछ गलत हो गया।.",
"name": "नाम",
"buy": "खरीदें",
"sell": "बेच दो"
"sell": "बेच दो",
"cancel-all": "सबै रद्द गर्नुहोस्"
}
6 changes: 2 additions & 4 deletions locales/iq/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
"error": "هەڵەیەک روویدا",
"name": " ناو",
"buy": "کڕین",
"sell": "فرۆشتن"



"sell": "فرۆشتن",
"cancel-all": "تمام منسوخ کریں۔"
}
3 changes: 2 additions & 1 deletion locales/ir/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "خطا در لغو سفارش",
"name": "نام",
"buy": "خرید",
"sell": "فروش"
"sell": "فروش",
"cancel-all": "لغو همه "
}
3 changes: 2 additions & 1 deletion locales/it/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Qualcosa non ha funzionato.",
"name": "NOME",
"buy": "ACQUISTA",
"sell": "VENDI"
"sell": "VENDI",
"cancel-all": "Cancella tutto"
}
3 changes: 2 additions & 1 deletion locales/jp/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "エラーが発生しました.",
"name": "名前",
"buy": "買",
"sell": "売"
"sell": "売",
"cancel-all": "すべてキャンセル"
}
3 changes: 2 additions & 1 deletion locales/kr/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "오류가 발생하였습니다..",
"name": "이름",
"buy": "매수",
"sell": "매도"
"sell": "매도",
"cancel-all": "모두 취소"
}
3 changes: 2 additions & 1 deletion locales/my/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Kegagalan berlaku ",
"name": "NAMA",
"buy": "BELI",
"sell": "JUAL"
"sell": "JUAL",
"cancel-all": "Batalkan Semua"
}
5 changes: 3 additions & 2 deletions locales/nl/orders.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"open-orders": "Open Orders",
"open-orders": "Openstaande bestellingen",
"order-history": "Order geschiedenis",
"assets": "Middelen",
"date": "Datum",
Expand All @@ -21,5 +21,6 @@
"error": "Er ging iets fout",
"name": "Naam",
"buy": "Koop",
"sell": "Verkoop"
"sell": "Verkoop",
"cancel-all": "Verwijder alles"
}
5 changes: 3 additions & 2 deletions locales/no/orders.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"open-orders": "ÅPNE BESTILLINGER",
"order-history": "ORDREHISTORIKK",
"order-history": "Bestelgeschiedenis",
"assets": "EIENDELER",
"date": "DATO",
"pair": "PAIR (handelspar)",
Expand All @@ -21,5 +21,6 @@
"error": "Noe gikk galt.",
"name": "NAVN",
"buy": "Kjøp",
"sell": "Salg"
"sell": "Salg",
"cancel-all": "Verwijder alles"
}
3 changes: 2 additions & 1 deletion locales/pl/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Cos poszlo nie tak ..",
"name": "Nazwa jednostki",
"buy": "Kup",
"sell": "Sprzedaj"
"sell": "Sprzedaj",
"cancel-all": "Anulować całość"
}
3 changes: 2 additions & 1 deletion locales/ru/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Что-то пошло не так.",
"name": "Название",
"buy": "Купить",
"sell": "Продать"
"sell": "Продать",
"cancel-all": "Отменить все"
}
3 changes: 2 additions & 1 deletion locales/se/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Något gick fel",
"name": "NAMN",
"buy": "KÖP",
"sell": "SÄLJ"
"sell": "SÄLJ",
"cancel-all": "Avbryt alla"
}
3 changes: 2 additions & 1 deletion locales/sk/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Niečo sa pokazilo",
"name": "Názov",
"buy": "Kúpiť",
"sell": "Predať"
"sell": "Predať",
"cancel-all": "Zrušiť všetko"
}
3 changes: 2 additions & 1 deletion locales/th/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Something went wrong.",
"name": "ชื่อ",
"buy": "ซื้ื้อ",
"sell": "ขาย"
"sell": "ขาย",
"cancel-all": "ยกเลิกทั้งหมด"
}
3 changes: 2 additions & 1 deletion locales/tr/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Bir şeyler ters gitti",
"name": "İSİM",
"buy": "AL ",
"sell": "SAT"
"sell": "SAT",
"cancel-all": "Hepsini iptal et"
}
3 changes: 2 additions & 1 deletion locales/vn/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"error": "Có lỗi",
"name": "Tên",
"buy": "Bán",
"sell": "Bán"
"sell": "Bán",
"cancel-all": "Hủy bỏ tất cả"
}