fix(link): Use gatsby Link for CTA button

This commit is contained in:
Bouncey
2018-08-30 15:41:57 +01:00
committed by mrugesh mohapatra
parent 9c38f7bcac
commit ba256b65d9

View File

@ -1,20 +1,23 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'react-bootstrap';
import { Link } from 'gatsby';
import './login.css';
function Login({ children, ...restProps }) {
return (
<Button
{...restProps}
bsStyle='default'
className={(restProps.block ? 'btn-cta-big' : '') + ' signup-btn btn-cta'}
href='/signin'
target='_blank'
>
{children || 'Sign In'}
</Button>
<Link to='/signin'>
<Button
{...restProps}
bsStyle='default'
className={
(restProps.block ? 'btn-cta-big' : '') + ' signup-btn btn-cta'
}
>
{children || 'Sign In'}
</Button>
</Link>
);
}