Skip to content

Commit f29f616

Browse files
committed
refactored Ax
1 parent 84fa865 commit f29f616

File tree

1 file changed

+4
-28
lines changed
  • src/app/components/StateRoute

1 file changed

+4
-28
lines changed

src/app/components/StateRoute/Ax.tsx

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,9 @@ const AxTree = (props) => {
5151
setShowTree(false);
5252
}
5353

54-
// useEffect(() => {
55-
// // dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'tree' to facilitate render.
56-
// }, []);
57-
58-
5954
return (
6055
<div>
6156
<p>A Note to Developers: Reactime is using the Chrome Debugging API in order to grab the Accessibility Tree. Enabling this option will allow you to record Accessibility Tree snapshots, but will result in the Chrome browser notifying you that the Chrome Debugger has started.</p>
62-
{/* {<button onClick={enableAxTreeButton}>Click Here to Enable Accessibility</button>} */}
6357
<div>
6458
{<input
6559
type='radio'
@@ -80,29 +74,11 @@ const AxTree = (props) => {
8074
/>}
8175
<label htmlFor='disable'>Disable</label>
8276
</div>
83-
8477
{showTree && <JSONTree
85-
data={axSnapshots[currLocation.index]}
86-
// shouldExpandNodeInitially={() => false}
87-
theme={theme}
88-
/>
89-
}
90-
</div>
78+
data={axSnapshots[currLocation.index]}
79+
theme={theme}
80+
/>}
81+
</div>
9182
)
92-
93-
// return (
94-
// <div>
95-
96-
// <p>A Note to Developers: Reactime is using the Chrome Debugging API in order to grab the Accessibility Tree. Enabling this option will allow you to record AxSnapshots, but will result in the Chrome browser notifying you that the Chrome Debugger has started.</p>
97-
// {<button onClick={enableAxTreeButton}>Click Here to Enable Accessibility</button>
98-
// // <JSONTree
99-
// // data={axSnapshots[currLocation.index]}
100-
// // // shouldExpandNodeInitially={() => false}
101-
// // theme={theme}
102-
// // /> : null
103-
// }
104-
105-
// </div>
106-
// );
10783
};
10884
export default AxTree;

0 commit comments

Comments
 (0)