refresh homepage if clicking 'home' while on the homepage
This commit is contained in:
parent
0ef0966226
commit
caae63b44b
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ const HOME = {
|
||||||
title: 'Home',
|
title: 'Home',
|
||||||
link: `/`,
|
link: `/`,
|
||||||
icon: ICONS.HOME,
|
icon: ICONS.HOME,
|
||||||
|
onClick: () => {
|
||||||
|
if (window.location.pathname === '/') window.location.reload();
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const RECENT_FROM_FOLLOWING = {
|
const RECENT_FROM_FOLLOWING = {
|
||||||
|
|
Loading…
Reference in a new issue