mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-23 01:29:41 +01:00
css modules workaround so build works
This commit is contained in:
parent
9ecd43d0e3
commit
dc9232134a
@ -18,9 +18,6 @@
|
|||||||
"node": true,
|
"node": true,
|
||||||
"es6": true
|
"es6": true
|
||||||
},
|
},
|
||||||
"globals": {
|
|
||||||
"graphql": true
|
|
||||||
},
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"quotes": ["error", "single"],
|
"quotes": ["error", "single"],
|
||||||
"semi": ["error", "never"],
|
"semi": ["error", "never"],
|
||||||
|
@ -2,6 +2,7 @@ import React, { Component } from 'react'
|
|||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import { Link, graphql, StaticQuery } from 'gatsby'
|
import { Link, graphql, StaticQuery } from 'gatsby'
|
||||||
import Img from 'gatsby-image'
|
import Img from 'gatsby-image'
|
||||||
|
import FullWidth from '../atoms/FullWidth'
|
||||||
import styles from './ProjectNav.module.scss'
|
import styles from './ProjectNav.module.scss'
|
||||||
|
|
||||||
const ProjectLink = ({ node }) => (
|
const ProjectLink = ({ node }) => (
|
||||||
@ -67,6 +68,7 @@ class ProjectNav extends Component {
|
|||||||
const projects = data.allProjectsYaml.edges
|
const projects = data.allProjectsYaml.edges
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<FullWidth>
|
||||||
<nav
|
<nav
|
||||||
className={styles.projectNav}
|
className={styles.projectNav}
|
||||||
ref={node => {
|
ref={node => {
|
||||||
@ -89,6 +91,7 @@ class ProjectNav extends Component {
|
|||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</nav>
|
</nav>
|
||||||
|
</FullWidth>
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@import 'variables';
|
@import 'variables';
|
||||||
|
|
||||||
.projectNav {
|
.projectNav {
|
||||||
composes: fullWidth from '../atoms/FullWidth.module.scss';
|
// composes: fullWidth from '../atoms/FullWidth.module.scss';
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
|
Loading…
Reference in New Issue
Block a user