Skip to content

Commit

Permalink
feat: nakamoto 3.0 mainnet updates
Browse files Browse the repository at this point in the history
  • Loading branch information
He1DAr authored and BLuEScioN committed Oct 28, 2024
1 parent 377e8f5 commit bbd685f
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 1,037 deletions.
Binary file added public/nakamoto-mainnet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 2 additions & 10 deletions src/app/PageClient.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
'use client';

import { logError } from '@/common/utils/error-utils';
import { NextPage } from 'next';
import dynamic from 'next/dynamic';

import { DEFAULT_BLOCKS_LIST_LIMIT, DEFAULT_LIST_LIMIT_SMALL } from '../common/constants/constants';
import { DEFAULT_LIST_LIMIT_SMALL } from '../common/constants/constants';

Check warning on line 6 in src/app/PageClient.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/PageClient.tsx#L6

Added line #L6 was not covered by tests
import { useGlobalContext } from '../common/context/useGlobalContext';
import { useRenderNewBlockList } from '../common/hooks/useIsNakamoto';
import { TxListTabs } from '../features/txs-list/tabs/TxListTabs';
import { Grid } from '../ui/Grid';
import { HomePageBlockListSkeleton } from './_components/BlockList/Grouped/skeleton';
import { UpdatedBlocksList } from './_components/BlockList/UpdatedBlockList';
import { PageTitle } from './_components/PageTitle';
import { Stats } from './_components/Stats/Stats';

Expand All @@ -25,7 +22,6 @@ const HomePageBlockListDynamic = dynamic(

const Home: NextPage = () => {
const { activeNetwork } = useGlobalContext();
const renderNewBlockList = useRenderNewBlockList();

return (
<>
Expand All @@ -41,11 +37,7 @@ const Home: NextPage = () => {
showFilterButton={false}
showValueMenu={false}
/>
{renderNewBlockList ? (
<HomePageBlockListDynamic />
) : (
<UpdatedBlocksList limit={DEFAULT_BLOCKS_LIST_LIMIT} />
)}
<HomePageBlockListDynamic />
</Grid>
</>
);
Expand Down
157 changes: 0 additions & 157 deletions src/app/_components/BlockList/BlocksPage/BlocksPageHeaders.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions src/app/_components/BlockList/Grouped/skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ import { Button } from '../../../../ui/Button';
import { Flex } from '../../../../ui/Flex';
import { SkeletonItem } from '../../../../ui/SkeletonItem';
import { SkeletonText } from '../../../../ui/SkeletonText';
import { Stack } from '../../../../ui/Stack';
import { Text } from '../../../../ui/Text';
import {
BlocksPageBlockListLayout,
BlocksPageControlsLayout,
} from '../BlocksPage/BlocksPageBlockList';
import { BlocksPageHeaderLayout } from '../BlocksPage/BlocksPageHeaders';
import { ControlsLayout } from '../Controls';
import { HomePageBlockListLayout, HomePageControlsLayout } from '../HomePage/HomePageBlockList';
import { BlockListRowSkeleton } from '../Ungrouped/skeleton';
Expand Down Expand Up @@ -172,32 +169,6 @@ export function BlocksPageBlockListGroupedSkeleton() {
);
}

export function BlockPageHeaderSkeleton() {
return (
<Stack py={5} px={9} gap={3} alignItems="flex-start" flexWrap="nowrap" justifyContent="center">
<Text fontSize="xs" fontWeight="medium" whiteSpace="nowrap">
<SkeletonText noOfLines={1} height="14px" skeletonHeight="14px" width={80} />
</Text>
<Text fontSize="xl" fontWeight="medium" whiteSpace="nowrap" display="inline-block" mr={1}>
<SkeletonText noOfLines={1} height="14px" skeletonHeight="14px" width={40} />
</Text>
<Text fontSize="xs" fontWeight="medium" color="textSubdued">
<SkeletonText noOfLines={1} height="14px" skeletonHeight="14px" width={80} />
</Text>
</Stack>
);
}

export function BlockPageHeadersSkeleton() {
return (
<BlocksPageHeaderLayout
lastBlockCard={<BlockPageHeaderSkeleton />}
averageStacksBlockTimeCard={<BlockPageHeaderSkeleton />}
lastConfirmedBitcoinBlockCard={<BlockPageHeaderSkeleton />}
/>
);
}

function HomePageControlsSkeleton({ horizontal }: { horizontal?: boolean }) {
return (
<HomePageControlsLayout>
Expand Down
125 changes: 0 additions & 125 deletions src/app/_components/BlockList/LayoutA/Paginated.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions src/app/_components/BlockList/SkeletonBlockList.tsx

This file was deleted.

Loading

0 comments on commit bbd685f

Please sign in to comment.