Skip to content

Commit

Permalink
feat: remove 'tx' in search placeholder on depositors page
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Aug 16, 2023
1 parent 66cfb57 commit 9d65c1e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Search/Filter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Filter = ({
onReset()
}}
>
{t('nervos_dao.dao_search_reset')}
{t('search.reset')}
</ResetButtonPanel>
)
}
Expand Down
7 changes: 4 additions & 3 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@
"address_type_mainnet_url": "mainnet explorer",
"search": "Search",
"dao_filter_no_result": "Filter result not found.\nPlease enter only complete Transaction Hash or Address",
"udt_filter_no_result": "Filter result not found.\nPlease enter only complete Address"
"udt_filter_no_result": "Filter result not found.\nPlease enter only complete Address",
"tx": "Transaction",
"addr": "Address",
"reset": "Reset"
},
"address": {
"address": "Address",
Expand Down Expand Up @@ -371,8 +374,6 @@
"locked_period": "Locked Period",
"locked_time": "Locked Time",
"deposit_capacity": "Deposit Capacity",
"dao_search_placeholder": "Transaction / Address",
"dao_search_reset": "Reset",
"dao_tab_transactions": "Transactions",
"dao_tab_depositors": "Depositors",
"dao_title_rank": "Rank",
Expand Down
7 changes: 4 additions & 3 deletions src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@
"address_type_mainnet_url": "主网浏览器查询",
"search": "搜索",
"dao_filter_no_result": "搜索结果为空。\n请输入完整的交易哈希或地址",
"udt_filter_no_result": "搜索结果为空。\n请输入完整的地址"
"udt_filter_no_result": "搜索结果为空。\n请输入完整的地址",
"tx": "交易",
"addr": "地址",
"reset": "复位"
},
"address": {
"address": "地址",
Expand Down Expand Up @@ -371,8 +374,6 @@
"locked_period": "锁定周期",
"locked_time": "锁定时间",
"deposit_capacity": "锁定金额",
"dao_search_placeholder": "交易 / 地址",
"dao_search_reset": "复位",
"dao_tab_transactions": "交易列表",
"dao_tab_depositors": "锁定地址",
"dao_title_rank": "排名",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/NervosDao/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const NervosDao = () => {
<Filter
defaultValue={params.filter}
showReset={!!params.filter}
placeholder={t('nervos_dao.dao_search_placeholder')}
placeholder={daoTab === 'depositors' ? t('search.addr') : `${t('search.tx')} / ${t('search.addr')}`}
onFilter={filter => {
push(`/nervosdao?${new URLSearchParams({ filter, tab })}`)
}}
Expand Down

0 comments on commit 9d65c1e

Please sign in to comment.