Skip to content

Commit

Permalink
Merge pull request #26 from oslabs-beta/jesse/comments
Browse files Browse the repository at this point in the history
Added Comments
  • Loading branch information
ay7991 committed Feb 21, 2024
2 parents dc2c1df + 84ab60d commit 5742fb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/components/StateRoute/StateRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const StateRoute = (props: StateRouteProps) => {
const hierarchy = propsHierarchy || tabsHierarchy;
const viewIndex = propsViewIndex || tabsViewIndex;


// lines 45 - 63 contains functionality to disable the accessibility features in Reactime.
const dispatch = useDispatch();
const [showTree, setShowTree] = useState(false);
const [selectedValue, setSelectedValue] = useState('disable');
Expand Down Expand Up @@ -122,6 +124,8 @@ const StateRoute = (props: StateRouteProps) => {
<Route
path='/accessibility'
element={
// 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
// state is a key component here in order to update the accessibility tree
showTree ? (
<div>
<input
Expand Down Expand Up @@ -269,3 +273,4 @@ const StateRoute = (props: StateRouteProps) => {
};

export default StateRoute;

0 comments on commit 5742fb3

Please sign in to comment.