fix(links): Use relative links

This commit is contained in:
Bouncey
2018-09-20 10:23:40 +01:00
committed by Stuart Taylor
parent 2de2143457
commit 5cbe99eced

View File

@ -1,5 +1,6 @@
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { Link } from 'gatsby';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
@ -11,9 +12,9 @@ const mapStateToProps = createSelector(userSelector, ({ picture }) => ({
function SignedIn({ picture }) { function SignedIn({ picture }) {
return ( return (
<a href='https://www.freecodecamp.org/settings'> <Link to='/settings'>
<img alt='' height='38px' src={picture} /> <img alt='' height='38px' src={picture} />
</a> </Link>
); );
} }