Merge pull request #213 from blockworks-foundation/lou/open-orders-search
feat: add open orders as a search option for accounts
This commit is contained in:
commit
60536bd452
|
@ -21,6 +21,7 @@ const SEARCH_TYPES = [
|
|||
'mango-account-name',
|
||||
'profile-name',
|
||||
'wallet-pk',
|
||||
'open-orders-pk',
|
||||
]
|
||||
|
||||
const SearchPage = () => {
|
||||
|
@ -33,7 +34,11 @@ const SearchPage = () => {
|
|||
const [isAccountSearch, setIsAccountSearch] = useState(true)
|
||||
|
||||
const handleSearch = async () => {
|
||||
if (searchType === 'mango-account' || searchType === 'mango-account-name') {
|
||||
if (
|
||||
searchType === 'mango-account' ||
|
||||
searchType === 'mango-account-name' ||
|
||||
searchType === 'open-orders-pk'
|
||||
) {
|
||||
setIsAccountSearch(true)
|
||||
} else {
|
||||
setIsAccountSearch(false)
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
"search-by": "Search By",
|
||||
"search-for": "Search For",
|
||||
"search-failed": "Something went wrong. Try again later",
|
||||
"wallet-pk": "Wallet Address"
|
||||
"wallet-pk": "Wallet Address",
|
||||
"open-orders-pk": "Open Orders Address"
|
||||
}
|
|
@ -10,5 +10,6 @@
|
|||
"search-by": "Search By",
|
||||
"search-for": "Search For",
|
||||
"search-failed": "Something went wrong. Try again later",
|
||||
"wallet-pk": "Wallet Address"
|
||||
"wallet-pk": "Wallet Address",
|
||||
"open-orders-pk": "Open Orders Address"
|
||||
}
|
|
@ -10,5 +10,6 @@
|
|||
"search-by": "Search By",
|
||||
"search-for": "Search For",
|
||||
"search-failed": "Something went wrong. Try again later",
|
||||
"wallet-pk": "Wallet Address"
|
||||
"wallet-pk": "Wallet Address",
|
||||
"open-orders-pk": "Open Orders Address"
|
||||
}
|
|
@ -10,5 +10,6 @@
|
|||
"search-by": "搜寻方式",
|
||||
"search-for": "搜寻",
|
||||
"search-failed": "出错了。稍后再试。",
|
||||
"wallet-pk": "钱包地址"
|
||||
"wallet-pk": "钱包地址",
|
||||
"open-orders-pk": "Open Orders Address"
|
||||
}
|
|
@ -10,5 +10,6 @@
|
|||
"search-by": "搜尋方式",
|
||||
"search-for": "搜尋",
|
||||
"search-failed": "出錯了。稍後再試。",
|
||||
"wallet-pk": "錢包地址"
|
||||
"wallet-pk": "錢包地址",
|
||||
"open-orders-pk": "Open Orders Address"
|
||||
}
|
Loading…
Reference in New Issue