mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* tx logs: fix layout on mobile Fixes #1052 * make a use of TruncatedValue
22 lines
672 B
TypeScript
22 lines
672 B
TypeScript
import React from 'react';
|
|
|
|
import type { DecodedInput } from 'types/api/decodedInput';
|
|
|
|
import LogDecodedInputDataHeader from './LogDecodedInputDataHeader';
|
|
import LogDecodedInputDataTable from './LogDecodedInputDataTable';
|
|
interface Props {
|
|
data: DecodedInput;
|
|
isLoading?: boolean;
|
|
}
|
|
|
|
const LogDecodedInputData = ({ data, isLoading }: Props) => {
|
|
return (
|
|
<>
|
|
<LogDecodedInputDataHeader methodId={ data.method_id } methodCall={ data.method_call } isLoading={ isLoading }/>
|
|
{ data.parameters.length > 0 && <LogDecodedInputDataTable data={ data.parameters } isLoading={ isLoading }/> }
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default React.memo(LogDecodedInputData);
|