From 9b0c71268899529341a55108a1fb4a6aaeeb6f6b Mon Sep 17 00:00:00 2001 From: Mitchell Simon Date: Mon, 2 Sep 2019 22:37:46 -0400 Subject: [PATCH] Add this function binds to Navbar constructor --- src/components/Job/index.tsx | 1 + src/components/Navbar/index.tsx | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/components/Job/index.tsx b/src/components/Job/index.tsx index 57e5367..a878110 100644 --- a/src/components/Job/index.tsx +++ b/src/components/Job/index.tsx @@ -21,6 +21,7 @@ export default class Experience extends React.PureComponent { ) } + private renderBullets() { return this.props.bullets.map((bullet, index) => (
  • {bullet}
  • diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index f1c54eb..c102710 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -14,6 +14,10 @@ class Navbar extends React.Component<{}, State> { constructor(props: {}) { super(props) this.state = { showMenu: !this.isMobile() } + + this.toggleMenu = this.toggleMenu.bind(this) + this.renderButtons = this.renderButtons.bind(this) + this.closeMenu = this.closeMenu.bind(this) } public render() {