mirror of
https://github.com/sergeyyarkov/educt-client.git
synced 2026-10-11 18:29:15 +03:00
feat: on hover link style
This commit is contained in:
parent
511f919ffe
commit
f6356a33df
@ -46,6 +46,10 @@ const NavLink: React.FC<NavLinkProps> = ({ link, onCloseDrawer }) => {
|
||||
padding='10px 15px'
|
||||
fontWeight='500'
|
||||
transition='all .1s'
|
||||
_hover={{
|
||||
bg: `${colorMode === 'dark' ? 'gray.700' : 'gray.100'}`,
|
||||
color: `blue.400`,
|
||||
}}
|
||||
>
|
||||
<Box as={link.icon} boxSize='26px' mr={3} />
|
||||
{link.title}
|
||||
|
||||
@ -15,8 +15,7 @@ export default class UIStore {
|
||||
makeAutoObservable(this);
|
||||
|
||||
this.history.listen(({ pathname }) => {
|
||||
console.log(`[history]: pathname changed to ${pathname}`);
|
||||
|
||||
console.log(`[history]: pathname changed to "${pathname}"`);
|
||||
this.location = pathname;
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user