Skip to content

Commit

Permalink
chore: update code based on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vutuanlinh2k2 committed Aug 2, 2023
1 parent b7553ce commit 0af328e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
8 changes: 7 additions & 1 deletion apps/hubble-stats/components/KeyMetricItem/KeyMetricItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ const KeyMetricItem: FC<MetricItemProps> = ({
changeRate,
}) => {
return (
<div className="table-cell px-4 py-2 space-y-2 w-1/4 border-x border-mono-40 dark:border-mono-160 first-of-type:border-l-0 last-of-type:border-r-0">
<div
className={cx(
'w-1/4 table-cell px-4 py-2 space-y-2',
'border-x border-mono-40 dark:border-mono-160',
'first-of-type:border-l-0 last-of-type:border-r-0'
)}
>
<Typography variant="body1" className="text-mono-140 dark:text-mono-40">
{title}
</Typography>
Expand Down
2 changes: 1 addition & 1 deletion apps/hubble-stats/components/ShieldedPoolsTable/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface ShieldedPoolType {
token: number;
deposits24h: number;
tvl: number;
typedChainIds: string[];
typedChainIds: number[];
}

export interface ShieldedPoolsTableProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import { FC } from 'react';
import cx from 'classnames';

import { KeyMetricItem } from '../../components';

const KeyMetricsTableContainer: FC = () => {
return (
<div className="w-full rounded-lg overflow-hidden border-2 border-mono-0 dark:border-mono-160 bg-glass dark:bg-glass_dark">
<div
className={cx(
'w-full rounded-lg overflow-hidden',
'bg-glass dark:bg-glass_dark',
'border-2 border-mono-0 dark:border-mono-160'
)}
>
{/* Tablet and Desktop */}
<div className="w-full hidden md:table table-fixed border-collapse">
<KeyMetricItem title="Total Transactions" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FC } from 'react';
import cx from 'classnames';
import { Typography } from '@webb-tools/webb-ui-components';
import { shortenHex } from '@webb-tools/webb-ui-components/utils';
import {
Expand All @@ -25,7 +26,13 @@ const PoolOverviewContainer: FC<{ poolOverviewData?: PoolOverviewType }> = ({
poolOverviewData = undefined,
}) => {
return (
<div className="w-full space-y-4 p-6 rounded-lg border-2 border-mono-0 dark:border-mono-160 bg-glass dark:bg-glass_dark">
<div
className={cx(
'w-full space-y-4 p-6 rounded-lg',
'bg-glass dark:bg-glass_dark',
'border-2 border-mono-0 dark:border-mono-160'
)}
>
<div className="flex flex-col items-center gap-1">
{/* Icon */}
<ShieldedAssetLight
Expand Down

0 comments on commit 0af328e

Please sign in to comment.