diff --git a/src/components/molecules/ProjectNav.jsx b/src/components/molecules/ProjectNav.jsx
index bb046a3..80fc65d 100644
--- a/src/components/molecules/ProjectNav.jsx
+++ b/src/components/molecules/ProjectNav.jsx
@@ -2,9 +2,19 @@ import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Img from 'gatsby-image'
-import FullWidth from '../atoms/FullWidth'
import styles from './ProjectNav.module.scss'
+const ProjectLink = ({ node }) => (
+
+
+
{node.title}
+
+)
+
class ProjectNav extends Component {
constructor(props) {
super(props)
@@ -33,41 +43,36 @@ class ProjectNav extends Component {
const { projects, project } = this.props
return (
-
-
+ return (
+ {
+ if (current) this.currentItem = node
+ }}
+ >
+
+
+ )
+ })}
+
)
}
}
+ProjectLink.propTypes = {
+ node: PropTypes.object
+}
+
ProjectNav.propTypes = {
projects: PropTypes.array,
project: PropTypes.object
diff --git a/src/components/molecules/ProjectNav.module.scss b/src/components/molecules/ProjectNav.module.scss
index d366a23..59c4b08 100644
--- a/src/components/molecules/ProjectNav.module.scss
+++ b/src/components/molecules/ProjectNav.module.scss
@@ -1,6 +1,7 @@
@import 'variables';
.projectNav {
+ composes: fullWidth from '../atoms/FullWidth.module.scss';
white-space: nowrap;
overflow-y: hidden;
overflow-x: scroll;