mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 14:13:21 +00:00
fix footer
This commit is contained in:
parent
12dffbd454
commit
01d0b33bc9
@ -6,6 +6,7 @@ import {
|
||||
PlusCircleIcon as PlusCircleIconFull,
|
||||
} from '@heroicons/react/24/solid';
|
||||
import { useEffect, useState } from 'preact/hooks';
|
||||
import { Link } from 'preact-router';
|
||||
|
||||
import Icons from '../Icons';
|
||||
import localState from '../LocalState';
|
||||
@ -40,14 +41,14 @@ const Footer = () => {
|
||||
const isActive = new RegExp(`^${href}(/|$)`).test(activeRoute);
|
||||
|
||||
return (
|
||||
<a className={`btn flex-grow ${isActive ? 'active' : ''}`}>
|
||||
<Link href={href} className={`btn flex-grow ${isActive ? 'active' : ''}`}>
|
||||
<Show when={isActive}>
|
||||
<IconActive width={24} />
|
||||
</Show>
|
||||
<Show when={!isActive}>
|
||||
<Icon width={24} />
|
||||
</Show>
|
||||
</a>
|
||||
</Link>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user