Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/__generated__/gql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions src/__generated__/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/api/chain-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
withExcludedRewardTransfers
} from '@/utils/unified-transaction-filters';

const GET_HOME_STATS = gql`
export const GET_HOME_STATS = gql`
query GetHomeChainStats(
$last24HourWhere: unified_transaction_bool_exp!
$last24HourTransferredWhere: unified_transaction_bool_exp!
Expand All @@ -30,7 +30,6 @@ const GET_HOME_STATS = gql`
total_cancelled_transfers
circulating_supply
max_supply
total_supply
total_transferred_amount
}
last24Hour: unified_transaction_aggregate(where: $last24HourWhere) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export const ChainStats: React.FC<ChainStatsProps> = () => {
totalTransferred,
last24HourTransferred,
maxSupply,
totalSupply,
circulatingSupply
} = useChainStats();

Expand Down Expand Up @@ -122,19 +121,13 @@ export const ChainStats: React.FC<ChainStatsProps> = () => {
/>
</CardGroup>

<CardGroup className="grid-cols-1 sm:grid-cols-3">
<CardGroup className="grid-cols-1 sm:grid-cols-2">
<SupplyStatCard
label="Max Supply"
loading={loading}
error={errorMessage}
value={maxSupply}
/>
<SupplyStatCard
label="Total Supply"
loading={loading}
error={errorMessage}
value={totalSupply}
/>
<SupplyStatCard
label="Coin Circulation"
loading={loading}
Expand Down
1 change: 0 additions & 1 deletion src/components/features/landing/hero/chain-stats/hook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export const useChainStats = () => {
totalTransferred: status?.total_transferred_amount,
last24HourTransferred,
maxSupply: status?.max_supply,
totalSupply: status?.total_supply,
circulatingSupply: status?.circulating_supply
};
};
Expand Down
1 change: 0 additions & 1 deletion src/schemas/chain-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export interface HomeChainStatsStatus {
total_cancelled_transfers: number;
circulating_supply: string;
max_supply: string;
total_supply: string;
total_transferred_amount: string;
}

Expand Down
Loading