Files
explore/ui/shared/logs/LogDecodedInputData.tsx
T
tom goriunovandGitHub deb36f57b0 tx logs: fix layout on mobile (#1062)
* tx logs: fix layout on mobile

Fixes #1052

* make a use of TruncatedValue
2023-08-07 19:20:40 -04:00

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);