Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnani73 committed Apr 25, 2024
1 parent eb52a1f commit 7ccd40d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
8 changes: 2 additions & 6 deletions src/components/Molecules/BlockDetails/BlockDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,12 @@ export const BlockDetails: React.FC<BlockDetailsProps> = ({
return (
<Card className="flex w-full flex-col items-start gap-x-4 rounded border border-secondary-light p-2 dark:border-secondary-dark dark:bg-background-dark dark:text-white">
{maybeResult.match({
None: () => (
<div className="mt-4">
<Skeleton size={GRK_SIZES.LARGE} />
</div>
),
None: () => <Skeleton size={GRK_SIZES.LARGE} />,
Some: (block) =>
errorMessage ? (
<p className="mt-4">{errorMessage}</p>
) : (
<div className="mt-2 grid w-full grid-cols-3 gap-16 gap-y-4">
<div className="grid w-full grid-cols-3 gap-16 gap-y-4">
<div>
<CardDescription>HEIGHT</CardDescription>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,12 @@ export const TransactionDetails: React.FC<TransactionDetailsProps> = ({
return (
<Card className="flex w-full flex-col items-start gap-x-4 rounded border border-secondary-light p-2 dark:border-secondary-dark dark:bg-background-dark dark:text-white">
{maybeResult.match({
None: () => (
<div className="mt-4">
<Skeleton size={GRK_SIZES.LARGE} />
</div>
),
None: () => <Skeleton size={GRK_SIZES.LARGE} />,
Some: (tx) =>
errorMessage ? (
<p className="mt-4">{errorMessage}</p>
) : (
<div className="mt-2 grid w-full grid-cols-3 gap-16 gap-y-4">
<div className="grid w-full grid-cols-3 gap-16 gap-y-4">
<div>
<CardDescription>TX HASH</CardDescription>

Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const TableRow = forwardRef<
<tr
ref={ref}
className={cn(
"border-b border-secondary-light transition-colors hover:bg-secondary-light data-[state=selected]:bg-primary-light dark:border-secondary-dark dark:hover:bg-primary-dark dark:data-[state=selected]:bg-primary-dark",
"border-b border-secondary-light transition-colors hover:bg-secondary-light data-[state=selected]:bg-primary-light dark:border-secondary-dark dark:hover:bg-secondary-dark dark:data-[state=selected]:bg-primary-dark",
className
)}
{...props}
Expand Down

0 comments on commit 7ccd40d

Please sign in to comment.