File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -117,11 +117,11 @@ const testCases: TestsCase[] = [
117
117
contentBaseURL : 'https://docs.gradient.network' ,
118
118
tests : [ { name : 'Home' , url : '/' } ] ,
119
119
} ,
120
- {
121
- name : 'mygate-network.gitbook.io' ,
122
- contentBaseURL : 'https://mygate-network.gitbook.io' ,
123
- tests : [ { name : 'Home' , url : '/' } ] ,
124
- } ,
120
+ // {
121
+ // name: 'mygate-network.gitbook.io',
122
+ // contentBaseURL: 'https://mygate-network.gitbook.io',
123
+ // tests: [{ name: 'Home', url: '/' }],
124
+ // },
125
125
{
126
126
name : 'treasurenft.gitbook.io' ,
127
127
contentBaseURL : 'https://treasurenft.gitbook.io' ,
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ export function SpacesDropdown(props: {
70
70
id : space . id ,
71
71
title : space . title ,
72
72
url : getSiteSpaceURL ( context , space ) ,
73
+ isActive : space . id === siteSpace . id ,
73
74
} ) ) }
74
75
curPath = { siteSpace . path }
75
76
/>
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ interface VariantSpace {
10
10
id : Space [ 'id' ] ;
11
11
title : Space [ 'title' ] ;
12
12
url : string ;
13
+ isActive : boolean ;
13
14
}
14
15
15
16
// When switching to a different variant space, we reconstruct the URL by swapping the space path.
@@ -64,7 +65,7 @@ export function SpacesDropdownMenuItems(props: {
64
65
< SpacesDropdownMenuItem
65
66
key = { space . id }
66
67
variantSpace = { space }
67
- active = { false }
68
+ active = { space . isActive }
68
69
currentSpacePath = { curPath }
69
70
/>
70
71
) ) }
You can’t perform that action at this time.
0 commit comments