fix(links): Use relative links
This commit is contained in:
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user