mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 16:17:13 +01:00
Event data updates.
This commit is contained in:
parent
d1e93b8e62
commit
55701c9e8c
15 changed files with 642 additions and 693 deletions
|
|
@ -48,10 +48,7 @@ export function WebsiteHeader({ websiteId, showLinks = true, children }) {
|
|||
{showLinks && (
|
||||
<Flexbox alignItems="center">
|
||||
{links.map(({ label, icon, path }) => {
|
||||
const query = path.indexOf('?');
|
||||
const selected = path
|
||||
? asPath.endsWith(query >= 0 ? path.substring(0, query) : path)
|
||||
: pathname === '/websites/[id]';
|
||||
const selected = path ? pathname.endsWith(path) : pathname === '/websites/[id]';
|
||||
|
||||
return (
|
||||
<Link key={label} href={`/websites/${websiteId}${path}`} shallow={true}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue