Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
fix(nav): remove sticky dep
Browse files Browse the repository at this point in the history
removes sticky dep
  • Loading branch information
eddier committed Mar 23, 2017
1 parent 10ad19c commit 938c67a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"postcss-loader": "^1.1.0",
"postcss-neat": "^2.5.2",
"react-remarkable": "^1.1.1",
"react-stickynode": "^1.2.1",
"react-styleguidist": "beta",
"react-test-renderer": "^15.4.0",
"ripcord": "^0.25.5",
Expand All @@ -54,6 +53,7 @@
"standard": "^9.0.0",
"style-loader": "^0.13.2",
"url": "^0.11.0",
"url-loader": "^0.5.7",
"webpack": "^1.13.1"
},
"dependencies": {
Expand Down
11 changes: 5 additions & 6 deletions src/components/LeftNav/LeftNav.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import React from 'react'
import LeftNavMenuItem from './LeftNavMenuItem'
import Sticky from 'react-stickynode'
import '../../styles/components/left-nav.css'
class LeftNav extends React.Component {
static MenuItem = LeftNavMenuItem

render () {
return (
<div className='nav__left-container'>
<Sticky enabled top={0} bottomBoundary={1200}>
<nav className='nav__left '>
{this.props.children}
</nav>
</Sticky>

<nav className='nav__left '>
{this.props.children}
</nav>

</div>
)
}
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6115,7 +6115,7 @@ mime-types@^2.1.11, mime-types@^2.1.12, mime-types@~2.1.11, mime-types@~2.1.13,
dependencies:
mime-db "~1.26.0"

[email protected], mime@^1.2.11, mime@^1.3.4:
[email protected], mime@1.3.x, mime@^1.2.11, mime@^1.3.4:
version "1.3.4"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53"

Expand Down Expand Up @@ -9970,6 +9970,13 @@ urix@^0.1.0, urix@~0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"

url-loader@^0.5.7:
version "0.5.8"
resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-0.5.8.tgz#b9183b1801e0f847718673673040bc9dc1c715c5"
dependencies:
loader-utils "^1.0.2"
mime "1.3.x"

url-parse-lax@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73"
Expand Down

0 comments on commit 938c67a

Please sign in to comment.