Skip to content

Commit

Permalink
[explorer] paginated package transactions (MystenLabs#11697)
Browse files Browse the repository at this point in the history
## Description 

<img width="864" alt="image"
src="https://user-images.githubusercontent.com/128089541/235974567-95bca78c-a393-45b6-a7c7-b2c92025a863.png">


## Test Plan 

Locally

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [x] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
Transactions paginated on package view
  • Loading branch information
Nikhil-Mysten authored May 3, 2023
1 parent 5d5deec commit 8aa5c0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/explorer/src/pages/object-result/views/PkgView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { type Direction } from 'react-resizable-panels';

import { ErrorBoundary } from '../../../components/error-boundary/ErrorBoundary';
import PkgModulesWrapper from '../../../components/module/PkgModulesWrapper';
import { TransactionsForAddress } from '../../../components/transactions/TransactionsForAddress';
import { useGetTransaction } from '../../../hooks/useGetTransaction';
import { getOwnerStr } from '../../../utils/objectUtils';
import { trimStdLibPrefix } from '../../../utils/stringUtils';
import { type DataType } from '../ObjectResultType';

import styles from './ObjectView.module.css';

import TransactionBlocksForAddress from '~/components/TransactionBlocksForAddress/TransactionBlocksForAddress';
import { AddressLink, ObjectLink } from '~/ui/InternalLink';
import { LoadingSpinner } from '~/ui/LoadingSpinner';
import { RadioGroup, RadioOption } from '~/ui/Radio';
Expand Down Expand Up @@ -149,9 +149,9 @@ function PkgView({ data }: { data: DataType }) {

<div className={styles.txsection}>
<ErrorBoundary>
<TransactionsForAddress
<TransactionBlocksForAddress
address={viewedData.id}
type="object"
isObject
/>
</ErrorBoundary>
</div>
Expand Down

0 comments on commit 8aa5c0e

Please sign in to comment.