mirror of
https://github.com/umami-software/umami.git
synced 2026-02-23 14:05:35 +01:00
Updated hooks. Changed url, host to path, hostname.
This commit is contained in:
parent
25a9c011b3
commit
543674c7f2
146 changed files with 23348 additions and 2533 deletions
|
|
@ -5,7 +5,7 @@ import { Clock, Eye, Lightning, User, ChartPie } from '@/components/icons';
|
|||
|
||||
export function WebsiteTabs() {
|
||||
const website = useWebsite();
|
||||
const { pathname, renderTeamUrl } = useNavigation();
|
||||
const { pathname, renderUrl } = useNavigation();
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
const links = [
|
||||
|
|
@ -49,7 +49,7 @@ export function WebsiteTabs() {
|
|||
<TabList>
|
||||
{links.map(({ id, label, icon, path }) => {
|
||||
return (
|
||||
<Tab key={id} id={id} href={renderTeamUrl(`/websites/${website.id}${path}`)}>
|
||||
<Tab key={id} id={id} href={renderUrl(`/websites/${website.id}${path}`)}>
|
||||
<Row alignItems="center" gap>
|
||||
<Icon>{icon}</Icon>
|
||||
<Text>{label}</Text>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue