Skip to content

Commit

Permalink
fix(explorer): type format in object view (#4066)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpl121 authored and begonaalvarezd committed Nov 20, 2024
1 parent b0c207d commit 1419770
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/explorer/src/pages/object-result/views/ObjectView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { type IotaObjectResponse, type ObjectOwner } from '@iota/iota-sdk/client
import {
formatAddress,
formatDigest,
formatType,
IOTA_TYPE_ARG,
normalizeStructTag,
parseStructTag,
Expand Down Expand Up @@ -113,7 +114,7 @@ function TypeCard({ objectType }: TypeCardCardProps): JSX.Element {
...rest,
};

const normalizedStructTag = normalizeStructTag(structTag);
const normalizedStructTag = formatType(normalizeStructTag(structTag));
return (
<DisplayStats
label="Type"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function DisplayStats({
{icon && <span className="text-neutral-10 dark:text-neutral-92">{icon}</span>}
</div>
<div className="flex w-full flex-row items-baseline gap-xxs">
<span className={cx(valueClass)}>{value}</span>
<span className={cx('break-all', valueClass)}>{value}</span>
{supportingLabel && (
<span className={cx('opacity-40', supportingLabelTextClass)}>
{supportingLabel}
Expand Down

0 comments on commit 1419770

Please sign in to comment.