Skip to content

Commit f999a90

Browse files
committed
Added links to the ReactType Logo
1 parent 3e4a48d commit f999a90

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

app/src/Dashboard/NavbarDash.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,13 @@ export default function NavBar(props) {
9393
<div className={classes.root} style={style}>
9494
<AppBar position='static'>
9595
<Toolbar>
96-
<Avatar src={greenLogo}></Avatar>
97-
<Typography variant="h6" style={{ marginLeft: '1rem' }} className={classes.title}>
98-
ReacType
99-
</Typography>
100-
<div style ={ { textDecoration: 'none' } }>
96+
<Link to="/" style={{display: 'inline-flex', justifyContent: 'center', textDecoration: 'none'}}>
97+
<Avatar src={greenLogo}></Avatar>
98+
<Typography variant="h6" style={{ marginTop: '0.3rem', marginLeft: '0.5rem', color: 'silver' }} className={classes.title}>
99+
ReacType
100+
</Typography>
101+
</Link>
102+
<div style ={ { marginLeft: '0.5rem', textDecoration: 'none' } }>
101103
<Button
102104
variant='contained'
103105
color='primary'

app/src/components/top/NavBar.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { RootState } from '../../redux/store';
55
//commenting out the line below breaks the app
66
import logo from '../../public/icons/win/logo.png';
77
import { useSelector } from 'react-redux';
8+
import { Link } from 'react-router-dom';
89

910
const NavBar = (props) => {
1011
// for dropdown navbar
@@ -22,12 +23,14 @@ const NavBar = (props) => {
2223
: { backgroundColor: '#151515' }
2324
}
2425
>
26+
<Link to="/" style={{textDecoration: 'none'}}>
2527
<div className="main-logo">
2628
<Avatar src={logo}></Avatar>
2729
<h1 style={isDarkMode ? { color: '#C6C6C6' } : { color: '#C6C6C6' }}>
2830
ReacType
2931
</h1>
3032
</div>
33+
</Link>
3134
<div onMouseLeave={() => setDropMenu(false)}>
3235
<svg
3336
xmlns="http://www.w3.org/2000/svg"

0 commit comments

Comments
 (0)