Skip to content

Commit 27f0446

Browse files
authored
Merge pull request #25 from oslabs-beta/eva/cleaning
adds comments describing functionality
2 parents 5742fb3 + 737711e commit 27f0446

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app/components/StateRoute/AxMap/Ax.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,15 +429,17 @@ export default function AxTree(props) {
429429
>
430430
<div>
431431
<div>
432+
{/*tooltipData['name'].value cannot be referred to using dot notation so using brackets here overrides typescript's strict data typing which was interfering with accessiccing this property */}
432433
<strong>{JSON.stringify(tooltipData['name'].value)}</strong>
433434
</div>
434435
<div>
436+
{/* Ax Node Info below names the tooltip title because of how its passed to the ToolTipDataDisplay container*/}
435437
<ToolTipDataDisplay containerName='Ax Node Info' dataObj={tooltipData} />
436438
</div>
437439
</div>
438440
</TooltipInPortal>
439441
)}
440-
442+
441443
<div>
442444
{ axLegendButtonClicked ?
443445
<AxLegend /> : ''

src/app/components/StateRoute/StateRoute.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const StateRoute = (props: StateRouteProps) => {
6565
return (
6666
<div className='app-body'>
6767
<div className='navbar'>
68+
{/* all classnames below are functionally defined for styling purposes */}
6869
<NavLink
6970
to='/'
7071
className={(navData) =>

0 commit comments

Comments
 (0)