update use of gatsby-link
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
9b1df5128f
commit
2e0945ed7e
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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 } }) {
|
||||
|
Reference in New Issue
Block a user