Skip to content

Commit

Permalink
chore: change overlimit notice text (#430)
Browse files Browse the repository at this point in the history
chore: add change overlimit notice
  • Loading branch information
PainterPuppets authored Jan 7, 2025
1 parent b14d12e commit 3c3250f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,7 @@
"isomorphic-binding-with-index": "Isomorphic bound to CKB Tx {{index}}",
"isomorphic-binding-with-index-commitment": "Isomorphic bound to CKB Tx {{index}}\n\nCommitment:\n{{commitment}}",
"loading": "Loading...",
"range_notice": "Only the latest 5,000 related transactions will be displayed here.",
"page_range_notice": "Only the latest 200 page related transactions will be displayed here."
"range_notice": "Only the latest {{count}} related items will be displayed here."
},
"block": {
"block": "Block",
Expand Down
3 changes: 1 addition & 2 deletions src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,7 @@
"isomorphic-binding-with-index": "与CKB Tx {{index}} 同构绑定",
"isomorphic-binding-with-index-commitment": "与 CKB Tx {{index}} 同构绑定\n\nCommitment:\n{{commitment}}",
"loading": "Loading...",
"range_notice": "只显示最近的 5,000 条相关交易",
"page_range_notice": "只显示最近 200 页的相关交易"
"range_notice": "只显示最近的 5,000 条相关交易"
},
"block": {
"block": "区块",
Expand Down
6 changes: 5 additions & 1 deletion src/pages/Address/AddressPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,11 @@ export const Address = () => {
</Card>

{!isPendingTxListActive && (transactionCountQuery.data?.totalPages ?? 0) >= 200 && (
<div className={styles.notice}>{t('transaction.page_range_notice')}</div>
<div className={styles.notice}>
{t('transaction.range_notice', {
count: 5000,
})}
</div>
)}

{isPendingTxListActive ? (
Expand Down
16 changes: 15 additions & 1 deletion src/pages/Script/ScriptsComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ export const ScriptTransactions = ({ page, size }: { page: number; size: number

return (
<>
{total >= 5000 && <div className={styles.notice}>{t('transaction.range_notice')}</div>}
{total >= 5000 && (
<div className={styles.notice}>
{t('transaction.range_notice', {
count: 5000,
})}
</div>
)}
<div className={styles.scriptTransactionsPanel}>
{ckbTransactions.length > 0 ? (
ckbTransactions.map(tr => (
Expand Down Expand Up @@ -171,6 +177,14 @@ export const ScriptCells = ({

return (
<>
{total >= 500 && (
<div className={styles.notice}>
{t('transaction.range_notice', {
count: 500,
})}
</div>
)}

<div className={styles.scriptCellsPanel}>
<table>
<thead>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Script/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const ScriptPage = () => {
}
key="referring_cells"
>
<ScriptCells page={currentPage} size={pageSize} cellType="referring_cells" />
<ScriptCells page={currentPage} size={100} cellType="referring_cells" />
</ScriptTabPane>
</ScriptTab>
</div>
Expand Down

0 comments on commit 3c3250f

Please sign in to comment.