diff --git a/content/home/examples/an-application.js b/content/home/examples/an-application.js
index cb1898fb..e164c4b0 100644
--- a/content/home/examples/an-application.js
+++ b/content/home/examples/an-application.js
@@ -60,4 +60,4 @@ class TodoList extends React.Component {
}
}
-ReactDOM.render(, mountNode);
\ No newline at end of file
+ReactDOM.render(, mountNode);
diff --git a/src/templates/components/Sidebar/Section.js b/src/templates/components/Sidebar/Section.js
index bf6db263..2738c853 100644
--- a/src/templates/components/Sidebar/Section.js
+++ b/src/templates/components/Sidebar/Section.js
@@ -10,94 +10,104 @@ import isItemActive from 'utils/isItemActive';
import MetaTitle from '../MetaTitle';
import ChevronSvg from '../ChevronSvg';
-const Section = ({
- activeItemId,
- createLink,
- isActive,
- isScrollSync,
- location,
- onLinkClick,
- onSectionTitleClick,
- section,
-}) => (
-
-
-
+
+ {section.title}
+
- {section.items.map(item => (
-
+
+
+
- {createLink({
- isActive: isScrollSync
- ? activeItemId === item.id
- : isItemActive(location, item),
- item,
- location,
- onLinkClick,
- section,
- })}
+ {section.items.map(item => (
+ -
+ {createLink({
+ isActive: isScrollSync
+ ? activeItemId === item.id
+ : isItemActive(location, item),
+ item,
+ location,
+ onLinkClick,
+ section,
+ })}
- {item.subitems && (
-
- {item.subitems.map(subitem => (
- -
- {createLink({
- isActive: isScrollSync
- ? activeItemId === subitem.id
- : isItemActive(location, subitem),
- item: subitem,
- location,
- onLinkClick,
- section,
- })}
-
- ))}
-
- )}
-
- ))}
-
-
-);
+ {item.subitems && (
+
+ {item.subitems.map(subitem => (
+ -
+ {createLink({
+ isActive: isScrollSync
+ ? activeItemId === subitem.id
+ : isItemActive(location, subitem),
+ item: subitem,
+ location,
+ onLinkClick,
+ section,
+ })}
+
+ ))}
+
+ )}
+
+ ))}
+
+
+ );
+ }
+}
export default Section;