Skip to content

Commit 22f0316

Browse files
authored
Merge pull request #566 from ksraj123/Issue565
Fix #565 - Clicking on items in navigation
2 parents b2e8bc5 + 8a10b02 commit 22f0316

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/user/dashboard/navigation/navigation.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ class Navigation extends Component {
3131
render() {
3232
const ListItem = (props) => {
3333
const item = props.isMobile ? (
34-
<ListGroup.Item className={props.className}>
35-
<NavLink to={props.link} className="link">
34+
<NavLink to={props.link} className="link">
35+
<ListGroup.Item className={props.className}>
3636
<SVGIcon name={props.name} isMobile={true} />
37-
</NavLink>
38-
</ListGroup.Item>
37+
</ListGroup.Item>
38+
</NavLink>
3939
) : (
40-
<ListGroup.Item className={props.className}>
41-
<SVGIcon name={props.name} />
42-
<NavLink to={props.link} className="link">
40+
<NavLink to={props.link} className="link">
41+
<ListGroup.Item className={props.className}>
42+
<SVGIcon name={props.name} />
4343
<b>{props.name}</b>
44-
</NavLink>
45-
</ListGroup.Item>
44+
</ListGroup.Item>
45+
</NavLink>
4646
);
4747

4848
return item;

src/user/dashboard/navigation/navigation.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727

2828
.main-navigation {
2929
.list-group {
30-
.active {
30+
.link {
3131
background-color: rgba(26, 115, 232, 0.1);
32-
.link {
32+
.active {
3333
color: #1a73e8;
3434
background-color: transparent;
3535
}
3636
}
3737
span {
38-
.active {
38+
.link {
3939
background-color: rgba(26, 115, 232, 0.1);
40-
.link {
40+
.active {
4141
color: #1a73e8;
4242
background-color: transparent;
4343
}
@@ -48,15 +48,15 @@
4848

4949
.main-navigation {
5050
.list-group {
51-
.inactive {
52-
.link {
51+
.link {
52+
.inactive {
5353
color: rgba(0, 0, 0, 0.5);
5454
}
5555
}
5656
span {
57-
.active {
58-
background-color: rgba(26, 115, 232, 0.1);
59-
.link {
57+
.link {
58+
.active {
59+
background-color: rgba(26, 115, 232, 0.1);
6060
color: #1a73e8;
6161
background-color: transparent;
6262
}

0 commit comments

Comments
 (0)