lint fixes

This commit is contained in:
Sharyn 2018-07-11 15:53:09 +02:00
parent a6ff2babc1
commit f4ebfd16eb
2 changed files with 6 additions and 4 deletions

View File

@ -1,11 +1,12 @@
import React from 'react'; import React from 'react';
import AnchorLink from 'react-anchor-link-smooth-scroll'; import AnchorLink from 'react-anchor-link-smooth-scroll';
import getConfig from 'next/config'; import getConfig from 'next/config';
const { publicRuntimeConfig } = getConfig();
import './style.scss'; import './style.scss';
const { publicRuntimeConfig } = getConfig();
const PageHeader = () => ( const PageHeader = () => (
<div className="page-header" style={{ backgroundImage: `url(${publicRuntimeConfig.subDirPath}/static/img/header-bg.jpg)`}}> <div className="page-header" style={{ backgroundImage: `url(${publicRuntimeConfig.subDirPath}/static/img/header-bg.jpg)` }}>
<div className="container"> <div className="container">
<nav className="page-header-nav"> <nav className="page-header-nav">
<AnchorLink offset="24" href="#resources">Resources</AnchorLink> <AnchorLink offset="24" href="#resources">Resources</AnchorLink>

View File

@ -1,11 +1,12 @@
import React from 'react'; import React from 'react';
import { PropTypes } from 'prop-types'; import { PropTypes } from 'prop-types';
import getConfig from 'next/config'; import getConfig from 'next/config';
const { publicRuntimeConfig } = getConfig();
import './style.scss'; import './style.scss';
const { publicRuntimeConfig } = getConfig();
const SearchBar = props => ( const SearchBar = props => (
<div className="search-bar" style={{ backgroundImage: `url(${publicRuntimeConfig.subDirPath}/static/img/header-bg.jpg)`}}> <div className="search-bar" style={{ backgroundImage: `url(${publicRuntimeConfig.subDirPath}/static/img/header-bg.jpg)` }}>
<div className="container"> <div className="container">
<h3>Browse</h3> <h3>Browse</h3>
<form className="search-form"> <form className="search-form">