mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* tx info customizations * authorizations tab * implement change for address page * amends
22 lines
587 B
TypeScript
22 lines
587 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import type { TxAuthorization } from 'types/api/transaction';
|
|
|
|
import TxAuthorizationsListItem from './TxAuthorizationsListItem';
|
|
|
|
interface Props {
|
|
data: Array<TxAuthorization> | undefined;
|
|
isLoading?: boolean;
|
|
}
|
|
|
|
const TxAuthorizationsList = ({ data, isLoading }: Props) => {
|
|
return (
|
|
<Box>
|
|
{ data?.map((item, index) => <TxAuthorizationsListItem key={ item.nonce.toString() + (isLoading ? index : '') } { ...item } isLoading={ isLoading }/>) }
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default TxAuthorizationsList;
|