File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -421,10 +421,10 @@ function NavList() {
421421 // This styling will be applied to a <NavLink> when the
422422 // route that it links to is currently selected.
423423 let activeStyle = {
424- textDecoration: " underline"
424+ textDecoration: " underline" ,
425425 };
426426
427- let activeClassName = " underline"
427+ let activeClassName = " underline" ;
428428
429429 return (
430430 <nav >
@@ -450,11 +450,13 @@ function NavList() {
450450 </NavLink >
451451 </li >
452452 <li >
453- <NavLink
454- to = " tasks"
455- >
453+ <NavLink to = " tasks" >
456454 { ({ isActive }) => (
457- <span className = { isActive ? activeClassName : undefined } >
455+ <span
456+ className = {
457+ isActive ? activeClassName : undefined
458+ }
459+ >
458460 Tasks
459461 </span >
460462 )}
You can’t perform that action at this time.
0 commit comments