Commit 985e8b23 authored by isstuev's avatar isstuev

some other fixes

parent 863cedc5
...@@ -17,6 +17,7 @@ import DetailsInfoItemDivider from 'ui/shared/DetailsInfoItemDivider'; ...@@ -17,6 +17,7 @@ import DetailsInfoItemDivider from 'ui/shared/DetailsInfoItemDivider';
import DetailsTimestamp from 'ui/shared/DetailsTimestamp'; import DetailsTimestamp from 'ui/shared/DetailsTimestamp';
import BlockEntity from 'ui/shared/entities/block/BlockEntity'; import BlockEntity from 'ui/shared/entities/block/BlockEntity';
import TxEntity from 'ui/shared/entities/tx/TxEntity'; import TxEntity from 'ui/shared/entities/tx/TxEntity';
import HashStringShortenDynamic from 'ui/shared/HashStringShortenDynamic';
import UserOpsAddress from 'ui/shared/userOps/UserOpsAddress'; import UserOpsAddress from 'ui/shared/userOps/UserOpsAddress';
import UserOpSponsorType from 'ui/shared/userOps/UserOpSponsorType'; import UserOpSponsorType from 'ui/shared/userOps/UserOpSponsorType';
import UserOpStatus from 'ui/shared/userOps/UserOpStatus'; import UserOpStatus from 'ui/shared/userOps/UserOpStatus';
...@@ -65,8 +66,8 @@ const UserOpDetails = ({ query }: Props) => { ...@@ -65,8 +66,8 @@ const UserOpDetails = ({ query }: Props) => {
hint="Unique character string assigned to every User operation" hint="Unique character string assigned to every User operation"
isLoading={ isPlaceholderData } isLoading={ isPlaceholderData }
> >
<Skeleton isLoaded={ !isPlaceholderData }> <Skeleton isLoaded={ !isPlaceholderData } overflow="hidden">
{ data.hash } <HashStringShortenDynamic hash={ data.hash }/>
</Skeleton> </Skeleton>
</DetailsInfoItem> </DetailsInfoItem>
<DetailsInfoItem <DetailsInfoItem
...@@ -83,11 +84,14 @@ const UserOpDetails = ({ query }: Props) => { ...@@ -83,11 +84,14 @@ const UserOpDetails = ({ query }: Props) => {
> >
<UserOpStatus status={ data.status } isLoading={ isPlaceholderData }/> <UserOpStatus status={ data.status } isLoading={ isPlaceholderData }/>
</DetailsInfoItem> </DetailsInfoItem>
{ /* how to show it? */ }
{ data.revert_reason && ( { data.revert_reason && (
<DetailsInfoItem <DetailsInfoItem
title="Revert reason" title="Revert reason"
hint="The revert reason of the User operation" hint="The revert reason of the User operation"
isLoading={ isPlaceholderData } isLoading={ isPlaceholderData }
wordBreak="break-all"
whiteSpace="normal"
> >
<Skeleton isLoaded={ !isPlaceholderData }> <Skeleton isLoaded={ !isPlaceholderData }>
{ data.revert_reason } { data.revert_reason }
...@@ -259,6 +263,8 @@ const UserOpDetails = ({ query }: Props) => { ...@@ -259,6 +263,8 @@ const UserOpDetails = ({ query }: Props) => {
<DetailsInfoItem <DetailsInfoItem
title="Init code" title="Init code"
hint="Code used to deploy the account if not yet on-chain" hint="Code used to deploy the account if not yet on-chain"
wordBreak="break-all"
whiteSpace="normal"
> >
{ data.init_code } { data.init_code }
</DetailsInfoItem> </DetailsInfoItem>
...@@ -266,7 +272,6 @@ const UserOpDetails = ({ query }: Props) => { ...@@ -266,7 +272,6 @@ const UserOpDetails = ({ query }: Props) => {
<DetailsInfoItem <DetailsInfoItem
title="Signature" title="Signature"
hint="Used to validate a User operation along with the nonce during verification" hint="Used to validate a User operation along with the nonce during verification"
wordBreak="break-all" wordBreak="break-all"
whiteSpace="normal" whiteSpace="normal"
...@@ -276,6 +281,8 @@ const UserOpDetails = ({ query }: Props) => { ...@@ -276,6 +281,8 @@ const UserOpDetails = ({ query }: Props) => {
<DetailsInfoItem <DetailsInfoItem
title="Nonce" title="Nonce"
hint="Anti-replay protection; also used as the salt for first-time account creation" hint="Anti-replay protection; also used as the salt for first-time account creation"
wordBreak="break-all"
whiteSpace="normal"
> >
{ data.nonce } { data.nonce }
</DetailsInfoItem> </DetailsInfoItem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment