set frontend link in sign in/up and landing pages

This commit is contained in:
Ruidy Nemausat 2020-05-13 10:20:13 +02:00
parent e2cc9f049c
commit e29fe27014
3 changed files with 12 additions and 7 deletions

View file

@ -1,4 +1,6 @@
import React, {FC} from 'react'; import React, {FC} from 'react';
import {Link} from 'react-router-dom';
import * as ROUTES from '../constants/routes';
/** /**
* Landing page * Landing page
@ -13,12 +15,12 @@ const Landing: FC = () => (
devs devs
</p> </p>
<div className="buttons"> <div className="buttons">
<a href="register.html" className="btn btn-primary"> <Link to={ROUTES.SIGN_UP} className="btn btn-primary">
Sign up Sign up
</a> </Link>
<a href="login.html" className="btn btn-light"> <Link to={ROUTES.SIGN_IN} className="btn btn-light">
Login Login
</a> </Link>
</div> </div>
</div> </div>
</div> </div>

View file

@ -1,5 +1,7 @@
import React, {FC} from 'react'; import React, {FC} from 'react';
import * as ROUTES from '../constants/routes';
import Header from '../components/Header'; import Header from '../components/Header';
import {Link} from 'react-router-dom';
/** /**
* Sign in form * Sign in form
@ -19,7 +21,7 @@ const SignIn: FC = () => (
<input type="submit" value="Login" className="btn btn-primary" /> <input type="submit" value="Login" className="btn btn-primary" />
</form> </form>
<p className="my-1"> <p className="my-1">
Don't have an account? <a href="register.html">Sign in</a> Don't have an account? <Link to={ROUTES.SIGN_UP}>Sign up</Link>
</p> </p>
</section> </section>
); );

View file

@ -1,6 +1,7 @@
import React, {FC} from 'react'; import React, {FC} from 'react';
import {Link} from 'react-router-dom';
import Header from '../components/Header'; import Header from '../components/Header';
import * as ROUTES from '../constants/routes';
/** /**
* Sign up form * Sign up form
*/ */
@ -26,7 +27,7 @@ const SignUp: FC = () => (
<input type="submit" value="Register" className="btn btn-primary" /> <input type="submit" value="Register" className="btn btn-primary" />
</form> </form>
<p className="my-1"> <p className="my-1">
Already have an account? <a href="login.html">Sign in</a> Already have an account? <Link to={ROUTES.SIGN_IN}>Sign in</Link>
</p> </p>
</section> </section>
); );