fix: replace hardgoto with api links

This commit is contained in:
Oliver Eyton-Williams
2020-08-10 11:40:14 +02:00
committed by Mrugesh Mohapatra
parent 5409e1e62e
commit a7d595f349
9 changed files with 31 additions and 110 deletions

View File

@@ -113,11 +113,6 @@ const mapDispatchToProps = {
verifyCert
};
const createHandleSignoutClick = navigate => e => {
e.preventDefault();
return navigate(`${apiLocation}/signout`);
};
export function ShowSettings(props) {
const {
createFlashMessage,
@@ -194,8 +189,7 @@ export function ShowSettings(props) {
bsSize='lg'
bsStyle='primary'
className='btn-invert'
href={'/signout'}
onClick={createHandleSignoutClick(navigate)}
href={`${apiLocation}/signout`}
>
Sign me out of freeCodeCamp
</Button>