Skip to content

Commit

Permalink
Merge pull request #1837 from blockscout/release/v1_29_0
Browse files Browse the repository at this point in the history
Fixes for release v1.29.0
  • Loading branch information
isstuev committed Apr 22, 2024
2 parents ca10f8a + 28dc026 commit d5925ba
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/address/contract/ContractCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const ContractCode = ({ addressHash, noSocket }: Props) => {
<InfoItem
label="License"
content={ licenseLink }
hint="License type is informative field, and initial source code might have different license type from displayed."
hint="License type is entered manually during verification. The initial source code may contain a different license type than the one displayed."
isLoading={ isPlaceholderData }
/>
) }
Expand Down
7 changes: 5 additions & 2 deletions ui/block/BlockDetails.pw.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { test, expect } from '@playwright/experimental-ct-react';
import React from 'react';

import * as blockMock from 'mocks/blocks/block';
import contextWithEnvs from 'playwright/fixtures/contextWithEnvs';
import { test, expect } from 'playwright/lib';
import TestApp from 'playwright/TestApp';
import * as configs from 'playwright/utils/configs';

Expand Down Expand Up @@ -51,7 +51,10 @@ test('genesis block', async({ mount, page }) => {
await expect(component).toHaveScreenshot();
});

test('with blob txs', async({ mount, page }) => {
test('with blob txs', async({ mount, page, mockEnvs }) => {
await mockEnvs([
[ 'NEXT_PUBLIC_DATA_AVAILABILITY_ENABLED', 'true' ],
]);
const query = {
data: blockMock.withBlobTxs,
isPending: false,
Expand Down
4 changes: 2 additions & 2 deletions ui/block/BlockDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ const BlockDetails = ({ query }: Props) => {
</LinkInternal>
);

const blockBlobTxsNum = data.blob_tx_count ? (
const blockBlobTxsNum = (config.features.dataAvailability.isEnabled && data.blob_tx_count) ? (
<>
<span> and </span>
<span> including </span>
<LinkInternal href={ route({ pathname: '/block/[height_or_hash]', query: { height_or_hash: heightOrHash, tab: 'blob_txs' } }) }>
{ data.blob_tx_count } blob txn{ data.blob_tx_count === 1 ? '' : 's' }
</LinkInternal>
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions ui/shared/Tabs/AdaptiveTabsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ const AdaptiveTabsList = (props: Props) => {
>
{ tabsList.map((tab, index) => {
if (!tab.id) {
if (props.isLoading) {
return null;
}

return (
<TabsMenu
key="menu"
Expand Down
1 change: 1 addition & 0 deletions ui/shared/filters/FilterButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const FilterButton = ({ isActive, isLoading, appliedFiltersNum, onClick, as }: P
px={ 1.5 }
flexShrink={ 0 }
as={ as }
pointerEvents="all"
>
{ FilterIcon }
<Box display={{ base: 'none', lg: 'block' }}>Filter</Box>
Expand Down

0 comments on commit d5925ba

Please sign in to comment.