Skip to content

Commit 05d0d7f

Browse files
committed
refactor(Login): add router link to Register button
1 parent 3910499 commit 05d0d7f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/views/Pages/Login/Login.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { Component } from 'react';
2+
import { Link } from 'react-router-dom';
23
import { Button, Card, CardBody, CardGroup, Col, Container, Form, Input, InputGroup, InputGroupAddon, InputGroupText, Row } from 'reactstrap';
34

45
class Login extends Component {
@@ -41,13 +42,15 @@ class Login extends Component {
4142
</Form>
4243
</CardBody>
4344
</Card>
44-
<Card className="text-white bg-primary py-5 d-md-down-none" style={{ width: 44 + '%' }}>
45+
<Card className="text-white bg-primary py-5 d-md-down-none" style={{ width: '44%' }}>
4546
<CardBody className="text-center">
4647
<div>
4748
<h2>Sign up</h2>
4849
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
4950
labore et dolore magna aliqua.</p>
50-
<Button color="primary" className="mt-3" active>Register Now!</Button>
51+
<Link to="/register">
52+
<Button color="primary" className="mt-3" active tabIndex={-1}>Register Now!</Button>
53+
</Link>
5154
</div>
5255
</CardBody>
5356
</Card>

0 commit comments

Comments
 (0)