Skip to content

Commit d6c8d9e

Browse files
committed
chore: format
1 parent 96453c6 commit d6c8d9e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/api.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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
)}

0 commit comments

Comments
 (0)