Skip to content

Commit ad45445

Browse files
committed
[skip ci] change default value for NEXT_PUBLIC_FEATURED_NETWORKS_MODE
1 parent 6be83f6 commit ad45445

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

configs/app/ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const UI = Object.freeze({
6060
featuredNetworks: {
6161
items: getExternalAssetFilePath('NEXT_PUBLIC_FEATURED_NETWORKS'),
6262
allLink: getEnvValue('NEXT_PUBLIC_FEATURED_NETWORKS_ALL_LINK'),
63-
mode: (getEnvValue('NEXT_PUBLIC_FEATURED_NETWORKS_MODE') || 'tabs') as 'tabs' | 'list',
63+
mode: (getEnvValue('NEXT_PUBLIC_FEATURED_NETWORKS_MODE') || 'list') as 'tabs' | 'list',
6464
},
6565
footer: {
6666
links: getExternalAssetFilePath('NEXT_PUBLIC_FOOTER_LINKS'),

docs/ENVS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ _Note_ Here, all values are arrays of up to two strings. The first string repres
174174
| --- | --- | --- | --- | --- | --- | --- |
175175
| NEXT_PUBLIC_FEATURED_NETWORKS | `string` | URL of configuration file (`.json` format only) or file content string representation. It contains list of featured networks that will be shown in the network menu. See [below](#featured-network-configuration-properties) list of available properties for particular network | - | - | `https://example.com/featured_networks_config.json` \| `[{'title':'Astar(EVM)','url':'https://astar.blockscout.com/','group':'Mainnets','icon':'https://example.com/astar.svg'}]` | v1.0.x+ |
176176
| NEXT_PUBLIC_FEATURED_NETWORKS_ALL_LINK | `string` | Link to the all chains resource. Will be displayed at the bottom of featured networks list. | Works only if NEXT_PUBLIC_FEATURED_NETWORKS is set | - | `https://example.com` | v2.3.0+ |
177-
| NEXT_PUBLIC_FEATURED_NETWORKS_MODE | `tabs \| list` | Indicates how the networks are presented: in one list or in separate tabs. | Works only if NEXT_PUBLIC_FEATURED_NETWORKS is set | `tabs` | `list` | upcoming |
177+
| NEXT_PUBLIC_FEATURED_NETWORKS_MODE | `tabs \| list` | Indicates how the networks are presented: in one list or in separate tabs. | Works only if NEXT_PUBLIC_FEATURED_NETWORKS is set | `list` | `tabs` | upcoming |
178178

179179
#### Featured network configuration properties
180180

ui/snippets/topBar/NetworkMenu.pw.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ test('tabs +@dark-mode', async({ render, mockEnvs, mockConfigResponse, mockAsset
1111
await mockEnvs([
1212
[ 'NEXT_PUBLIC_FEATURED_NETWORKS', FEATURED_NETWORKS_URL ],
1313
[ 'NEXT_PUBLIC_FEATURED_NETWORKS_ALL_LINK', 'https://example.com' ],
14+
[ 'NEXT_PUBLIC_FEATURED_NETWORKS_MODE', 'tabs' ],
1415
]);
1516
await mockConfigResponse('NEXT_PUBLIC_FEATURED_NETWORKS', FEATURED_NETWORKS_URL, FEATURED_NETWORKS);
1617
await mockAssetResponse('https://localhost:3000/my-logo.png', './playwright/mocks/image_s.jpg');
@@ -29,7 +30,6 @@ test('list +@dark-mode', async({ render, mockEnvs, mockConfigResponse, mockAsset
2930
await mockEnvs([
3031
[ 'NEXT_PUBLIC_FEATURED_NETWORKS', FEATURED_NETWORKS_URL ],
3132
[ 'NEXT_PUBLIC_FEATURED_NETWORKS_ALL_LINK', 'https://example.com' ],
32-
[ 'NEXT_PUBLIC_FEATURED_NETWORKS_MODE', 'list' ],
3333
]);
3434
await mockConfigResponse('NEXT_PUBLIC_FEATURED_NETWORKS', FEATURED_NETWORKS_URL, FEATURED_NETWORKS);
3535
await mockAssetResponse('https://localhost:3000/my-logo.png', './playwright/mocks/image_s.jpg');

0 commit comments

Comments
 (0)