mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 03:55:37 +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
|
|
@ -15,7 +15,7 @@ import { InputItem } from '@/lib/types';
|
|||
|
||||
export function WebsiteMenu({ websiteId }: { websiteId: string }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { router, renderUrl, renderTeamUrl } = useNavigation();
|
||||
const { router, updateParams, renderUrl } = useNavigation();
|
||||
|
||||
const menuItems: InputItem[] = [
|
||||
{ id: 'share', label: formatMessage(labels.share), icon: <Share /> },
|
||||
|
|
@ -24,9 +24,9 @@ export function WebsiteMenu({ websiteId }: { websiteId: string }) {
|
|||
|
||||
const handleAction = (id: any) => {
|
||||
if (id === 'compare') {
|
||||
router.push(renderUrl({ compare: 'prev' }));
|
||||
router.push(updateParams({ compare: 'prev' }));
|
||||
} else if (id === 'edit') {
|
||||
router.push(renderTeamUrl(`/settings/websites/${websiteId}`));
|
||||
router.push(renderUrl(`/settings/websites/${websiteId}`));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue