From 079ad21f6d3da58180f68d8ac0f1ce55679373b5 Mon Sep 17 00:00:00 2001
From: Ewa Kowalska <30404388+ekowalsk@users.noreply.github.com>
Date: Thu, 16 Sep 2021 07:06:48 +0200
Subject: [PATCH] Extract input for filtering by name or tags (#6089)
* Extract input for filtering by name or tags
* Remove unnecessary div
* Change width of filter input and move group buttons
---
packages/page-accounts/src/Accounts/index.tsx | 96 +++++++++++--------
1 file changed, 55 insertions(+), 41 deletions(-)
diff --git a/packages/page-accounts/src/Accounts/index.tsx b/packages/page-accounts/src/Accounts/index.tsx
index b56d46e90f..a2619f5547 100644
--- a/packages/page-accounts/src/Accounts/index.tsx
+++ b/packages/page-accounts/src/Accounts/index.tsx
@@ -225,46 +225,6 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen
onStatusChange={onStatusChange}
/>
)}
-
-
@@ -281,11 +241,51 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen
options={dropdownOptions()}
sortDirection={sortFromMax ? 'ascending' : 'descending'}
/>
+ {filter}
+
+ ('Add account')}
+ onClick={_openCreateModal}
+ />
+ ('Restore JSON')}
+ onClick={toggleImport}
+ />
+ ('Add via Qr')}
+ onClick={toggleQr}
+ />
+ {isLedgerEnabled && (
+ <>
+ ('Add via Ledger')}
+ onClick={toggleLedger}
+ />
+ >
+ )}
+ ('Multisig')}
+ onClick={toggleMultisig}
+ />
+ ('Proxied')}
+ onClick={toggleProxy}
+ />
+
("You don't have any accounts. Some features are currently hidden and will only become available once you have accounts.")}
- filter={filter}
header={header.current}
>
{!isLoading &&
@@ -301,6 +301,20 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen
}
export default React.memo(styled(Overview)`
+ .filter--tags {
+ width: 29.5rem;
+ margin-left: 1.5rem;
+
+ .ui--Input {
+ margin: 0;
+ height: 3.893rem;
+ }
+ }
+
+ .ui--Dropdown {
+ width: 15rem;
+ }
+
.dropdown-section {
display: flex;
flex-direction: row;