diff --git a/src/components/HorizontalTimeline.tsx b/src/components/HorizontalTimeline.tsx index f32d898b46a7c4e5266331cecd8983241dbee09e..dcc4b8fd29163a4f3aed9fef1db1b396f1e6a146 100644 --- a/src/components/HorizontalTimeline.tsx +++ b/src/components/HorizontalTimeline.tsx @@ -1,9 +1,4 @@ - - - - - - +import { HPdata as data} from "./seclarations"; function TimeItem({color, tag, title, children, pic, author, tabid}: ItemProps){ return( @@ -140,38 +135,3 @@ function TimeItem({color, tag, title, children, pic, author, tabid}: ItemProps){ } -let data = [ - { - title: "Deutlich längerer Titel zum Test", - pic: "https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg", - tag: "Langer langer TAgs", - color: "blue", - author: "author", - tabid: "Eins", - text: "Text", - }, - { - title: "Deutlich längerer Titel zum Test", - pic: "https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg", - tag: "Langer langer TAgs", - color: "blue", - author: "author", - tabid: "Eins", - text: "Text", - }, - { - title: "Deutlich längerer Titel zum Test" , - pic: "https://static.igem.wiki/teams/5247/placeholders/placehilderperson.jpeg", - tag: "Tag", - color: "blue", - author: "a", - tabid: "Paris", - text: "Text", - } - ] - - - - - - diff --git a/src/components/data/humanpractice.js b/src/components/data/humanpractice.ts similarity index 100% rename from src/components/data/humanpractice.js rename to src/components/data/humanpractice.ts diff --git a/src/components/seclarations.ts b/src/components/seclarations.ts index 968eecece9687250fa1884eb105f383067d70482..64a3d453d18cdcecdefa9091775d2a3e31847984 100644 --- a/src/components/seclarations.ts +++ b/src/components/seclarations.ts @@ -7,6 +7,7 @@ export * from './AOSs.tsx' export * from './My-Timeline.tsx' export * from './data/mapscr.ts' +export * from './data/humanpractice.ts' declare global{ interface Window { datawrapper: Datawrapper;