update use of gatsby-link

This commit is contained in:
ValeraS
2018-09-11 15:35:46 +03:00
committed by Mrugesh Mohapatra
parent 9b1df5128f
commit 2e0945ed7e
5 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import React from 'react';
import Link from 'gatsby-link';
import { Link } from 'gatsby';
import FCCSearch from 'react-freecodecamp-search';
import NavLogo from './components/NavLogo';

View File

@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Link from 'gatsby-link';
import { Link } from 'gatsby';
import ga from '../../../analytics';
import { makeExpandedBlockSelector, toggleBlock } from '../redux';

View File

@ -1,6 +1,6 @@
import React from 'react';
import Helmet from 'react-helmet';
import Link from 'gatsby-link';
import { Link } from 'gatsby';
import './404.css';
import notFoundLogo from '../../static/img/freeCodeCamp-404.svg';

View File

@ -2,7 +2,7 @@
/* eslint-disable max-len */
import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import { Link } from 'gatsby';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';

View File

@ -1,7 +1,7 @@
/* global graphql */
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import Link, { navigateTo } from 'gatsby-link';
import { Link, navigate } from 'gatsby';
import Helmet from 'react-helmet';
import { Button, ListGroup, ListGroupItem } from 'react-bootstrap';
@ -27,7 +27,7 @@ function renderMenuItems({ edges = [] }) {
}
function handleCurriculumClick() {
return navigateTo('/');
return navigate('/');
}
function IntroductionPage({ data: { markdownRemark, allChallengeNode } }) {