Skip to content

Commit

Permalink
Merge pull request #680 from alleslabs/chore/temp-hide-sei-blocktime
Browse files Browse the repository at this point in the history
:temp hide sei blocktime
  • Loading branch information
tansawit authored Dec 19, 2023
2 parents a5e3a72 + 299ea33 commit 6ebf1be
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Features

- [#680](https://github.com/alleslabs/celatone-frontend/pull/680) Temporarily hide sei block time
- [#679](https://github.com/alleslabs/celatone-frontend/pull/679) Temporarily update sei pacific graphql endpoint
- [#661](https://github.com/alleslabs/celatone-frontend/pull/661) Add stone-12-1 network
- [#642](https://github.com/alleslabs/celatone-frontend/pull/642) Add stone-12 network
Expand Down
26 changes: 18 additions & 8 deletions src/lib/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const Home = () => {
const navigate = useInternalNavigate();
const isMobile = useMobile();
const {
chainConfig: { prettyName },
chainConfig: { prettyName, chain },
} = useCelatoneApp();
const {
data: latestBlockInfo,
Expand Down Expand Up @@ -213,13 +213,23 @@ const Home = () => {
isLoading={isLoadingLatestBlockInfo}
navigate={toBlocks}
/>
<CardInfo
title={blockTimeInfo.title}
tooltip={blockTimeInfo.tooltip}
value={averageBlockTime}
isLoading={isLoadingTxsCount}
navigate={toTxs}
/>
{chain === "sei" ? (
<CardInfo
title={blockTimeInfo.title}
tooltip={blockTimeInfo.tooltip}
value="N/A"
isLoading={isLoadingTxsCount}
navigate={toTxs}
/>
) : (
<CardInfo
title={blockTimeInfo.title}
tooltip={blockTimeInfo.tooltip}
value={averageBlockTime}
isLoading={isLoadingTxsCount}
navigate={toTxs}
/>
)}
</Flex>
</Flex>
{!isMobile && (
Expand Down

5 comments on commit 6ebf1be

@vercel
Copy link

@vercel vercel bot commented on 6ebf1be Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 6ebf1be Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 6ebf1be Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 6ebf1be Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 6ebf1be Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.