Skip to content

Commit

Permalink
chore: i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed Oct 19, 2023
1 parent 9f047f1 commit aa2ce98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions _raw/locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"txHistory": {
"tipInputData": "这笔交易有留言",
"parseInputDataError": "解析留言失败"
},
"filterScam": {
"title": "隐藏欺诈交易",
"loading": "数据加载需要一定时间,且可能会有数据延迟",
"btn": "隐藏欺诈交易"
}
},
"dashboard": {
Expand Down
7 changes: 3 additions & 4 deletions src/ui/views/History/components/HistoryList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import { Link } from 'react-router-dom';

import { useAccount } from '@/ui/store-hooks';
import { useInfiniteScroll } from 'ahooks';
import { TxHistoryResult } from 'background/service/openapi';
import { Empty, Modal, PageHeader } from 'ui/component';
import { Virtuoso } from 'react-virtuoso';
import { Empty, Modal } from 'ui/component';
import { useWallet } from 'ui/utils';
import { HistoryItem, HistoryItemActionContext } from './HistoryItem';
import { Loading } from './Loading';
import { Virtuoso } from 'react-virtuoso';

const PAGE_COUNT = 10;

Expand Down Expand Up @@ -55,7 +54,7 @@ export const HistoryList = ({

const res = await getHistory({
id: address,
start_time: startTime,
start_time: !isFilterScam ? startTime : undefined,
});

const { project_dict, cate_dict, history_list: list } = res;
Expand Down

0 comments on commit aa2ce98

Please sign in to comment.