From 5beb9f3cc4bb76ae6415dead17c4343da063ec2f Mon Sep 17 00:00:00 2001 From: Liliana Sanfilippo <liliana.sanfilippo@uni-bielefeld.de> Date: Tue, 1 Oct 2024 17:58:41 +0200 Subject: [PATCH] link --- src/data/hptimelinedata.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/data/hptimelinedata.tsx b/src/data/hptimelinedata.tsx index 1e79d5d4..d73889a5 100644 --- a/src/data/hptimelinedata.tsx +++ b/src/data/hptimelinedata.tsx @@ -21,6 +21,19 @@ function HPgoToPageAndScroll({id, text, path}:{id: string, text: string, path: s ) } +function HPgoToPageAndOpenTab({id, text, path}:{id: string, text: string, path: string}){ + const {goToPagesAndOpenTab} = useNavigation(); + return( + <a onClick={() => goToPagesAndOpenTab(id, path)}> {text} </a> + ) +} +function HPgoToPageAndOpenTabAndScroll({tab, text, path, scrollId}:{tab: string, text: string, path: string, scrollId: string}){ + const {goToPageWithTabAndScroll} = useNavigation(); + return( + <a onClick={() => goToPageWithTabAndScroll({tabId: tab, path: path, scrollToId: scrollId})}> {text} </a> + ) +} + export interface TimelineDatenpunkt { title?: string; /* Prof. , Dr., ... */ vorname: string; -- GitLab