File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -125,21 +125,27 @@ const StateRoute = (props: StateRouteProps) => {
125
125
path = '/accessibility'
126
126
element = {
127
127
showTree ? (
128
- < ParentSize className = 'componentMapContainer' >
128
+ < ParentSize className = 'componentMapContainer' >
129
129
{ ( { width, height } ) => {
130
130
// eslint-disable-next-line react/prop-types
131
131
const maxHeight : number = 1200 ;
132
132
const h = Math . min ( height , maxHeight ) ;
133
133
console . log ( 'h: ' , h ) ;
134
134
return (
135
- < AxTree
136
- axSnapshots = { axSnapshots }
137
- snapshot = { snapshot }
138
- snapshots = { snapshots }
139
- currLocation = { currLocation }
140
- width = { width }
141
- height = { h }
142
- />
135
+ < div >
136
+ < input type = "radio" value = 'enable' checked = { selectedValue === 'enable' } /> < label htmlFor = 'enable' > Enable</ label >
137
+ < input type = "radio" value = 'disable' checked = { selectedValue === 'disable' } onChange = { ( ) => {
138
+ disableAxTree ( ) ; } } />
139
+ < label htmlFor = 'disable' > Disable</ label >
140
+ < AxTree
141
+ axSnapshots = { axSnapshots }
142
+ snapshot = { snapshot }
143
+ snapshots = { snapshots }
144
+ currLocation = { currLocation }
145
+ width = { width }
146
+ height = { h }
147
+ />
148
+ </ div >
143
149
) ;
144
150
} }
145
151
</ ParentSize >
Original file line number Diff line number Diff line change @@ -551,5 +551,4 @@ export const {
551
551
startReconnect,
552
552
endConnect,
553
553
toggleAxTree,
554
- toggleAxTree,
555
554
} = mainSlice . actions ;
You can’t perform that action at this time.
0 commit comments