Skip to content

Commit 6e359e7

Browse files
committed
added styling to login and signup links
1 parent c6534f3 commit 6e359e7

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

src/components/login/SignIn.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Component, useState, useEffect } from 'react';
22
import { LoginInt } from '../../interfaces/Interfaces';
33
import { setLoginState } from '../../actions/actionCreators';
44
import { useSelector, useDispatch } from 'react-redux';
5-
import { Link as RouteLink, withRouter, useHistory, RouteComponentProps } from 'react-router-dom';
5+
import { NavLink as RouteLink, withRouter, useHistory, RouteComponentProps } from 'react-router-dom';
66
import { sessionIsCreated } from '../../helperFunctions/auth';
77

88
import Avatar from '@material-ui/core/Avatar';
@@ -144,8 +144,7 @@ const SignIn: React.FC<LoginInt & RouteComponentProps> = props => {
144144
</Link>
145145
</Grid>
146146
<Grid item>
147-
{/* <RouteLink to={`/signup`} style={{ textDecoration: 'none' }}>Don't have an account? Sign Up</RouteLink> */}
148-
<Link href="/signup" variant="body2">Don't have an account? Sign Up</Link>
147+
<RouteLink to={`/signup`} className="nav_link">Don't have an account? Sign Up</RouteLink>
149148
</Grid>
150149
</Grid>
151150
</div>

src/components/login/SignUp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const SignUp: React.FC<LoginInt & RouteComponentProps> = props => {
156156
</Button>
157157
<Grid container justify="flex-end">
158158
<Grid item>
159-
<RouteLink to={`/login`}>Already have an account? Sign In</RouteLink>
159+
<RouteLink to={`/login`} className="nav_link">Already have an account? Sign In</RouteLink>
160160
</Grid>
161161
</Grid>
162162
</form>

src/public/styles/style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,3 +306,14 @@ div.rst__rowContents {
306306
width: 80%;
307307
}
308308
} */
309+
310+
a.nav_link {
311+
cursor: pointer;
312+
text-decoration: none;
313+
}
314+
315+
a.nav_link:hover {
316+
cursor: pointer;
317+
color: red;
318+
text-decoration: underline;
319+
}

0 commit comments

Comments
 (0)