Skip to content

Commit 5742fb3

Browse files
authored
Merge pull request #26 from oslabs-beta/jesse/comments
Added Comments
2 parents dc2c1df + 84ab60d commit 5742fb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/components/StateRoute/StateRoute.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ const StateRoute = (props: StateRouteProps) => {
4040
const hierarchy = propsHierarchy || tabsHierarchy;
4141
const viewIndex = propsViewIndex || tabsViewIndex;
4242

43+
44+
// lines 45 - 63 contains functionality to disable the accessibility features in Reactime.
4345
const dispatch = useDispatch();
4446
const [showTree, setShowTree] = useState(false);
4547
const [selectedValue, setSelectedValue] = useState('disable');
@@ -122,6 +124,8 @@ const StateRoute = (props: StateRouteProps) => {
122124
<Route
123125
path='/accessibility'
124126
element={
127+
// showTree is initially set to a falsely value, therefore, lines 155 - 189 is executed first. Once showTree is set to truthy by clicking the enable button, lines 129 - 154 is executed
128+
// state is a key component here in order to update the accessibility tree
125129
showTree ? (
126130
<div>
127131
<input
@@ -269,3 +273,4 @@ const StateRoute = (props: StateRouteProps) => {
269273
};
270274

271275
export default StateRoute;
276+

0 commit comments

Comments
 (0)