Skip to content

Commit

Permalink
fix: console errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicone committed Apr 30, 2019
1 parent 8730052 commit d823c8e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"scripts": {
"dev": "yarn workspace example develop",
"build": "yarn workspace example build",
"serve": "yarn workspace example serve",
"serve": "yarn build && yarn workspace example serve",
"now-build": "yarn workspace example build",
"lint": "eslint ."
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const LeftNavItem = props => {
return (
<SideNavLink
onClick={closeLeftNav}
icon={<span>dummy icon</span>}
element={Link}
partiallyActive
activeClassName="bx--side-nav__link--current"
Expand All @@ -33,6 +34,7 @@ const LeftNavItem = props => {
<Location>
{({ location }) => (
<SideNavMenu
icon={<span>dummy icon</span>}
isActive={location.pathname.includes(
slugify(category, { lower: true })
)} // TODO similar categories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const LeftNavWrapper = styled.div(({ expanded }) => ({
position: 'fixed',
left: 0,
zIndex: 8000,
transform: expanded ? 'translateX(0px)' : 'translateX(-260px)',
transform: expanded ? 'translateX(0px)' : 'translateX(-256px)',
'.bx--side-nav.bx--side-nav--website': {
boxShadow: expanded ? '0 2px 8px rgba(0, 0, 0, 0.2)' : 'none',
},
[mq.lg]: {
transform: 'translateX(0px)',
'.bx--side-nav.bx--side-nav--website': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const LeftNavResourceLinks = ({ links }) =>
<hr className="bx--side-nav__divider" />
{links.map((link, i) => (
<SideNavLink
key={i}
style={{ marginTop: i === 0 ? '1rem' : 0 }}
icon={<LaunchIcon />}
href={link.href}
Expand Down

0 comments on commit d823c8e

Please sign in to comment.