From 4ac2778262bb9ff80584576d61d7c6214de388ac Mon Sep 17 00:00:00 2001
From: liliana <liliana.sanfilippo@uni-bielefeld.de>
Date: Thu, 4 Jul 2024 19:22:55 +0200
Subject: [PATCH] fixed event is declared but never read

---
 src/components/HorizontalTimeline.tsx |  2 +-
 src/contents/wiki.tsx                 | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/src/components/HorizontalTimeline.tsx b/src/components/HorizontalTimeline.tsx
index 3fd6ced3..f32d898b 100644
--- a/src/components/HorizontalTimeline.tsx
+++ b/src/components/HorizontalTimeline.tsx
@@ -64,7 +64,7 @@ function TimeItem({color, tag, title, children, pic, author, tabid}: ItemProps){
   }
   
   function Open({person}:{person: string}){
-    const openPop =  (event : React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
+    const openPop =  (_event : React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
       var popup = document.getElementById(person);
       popup!.classList.toggle("show");
     }
diff --git a/src/contents/wiki.tsx b/src/contents/wiki.tsx
index 5a986cae..86c47b05 100644
--- a/src/contents/wiki.tsx
+++ b/src/contents/wiki.tsx
@@ -122,6 +122,25 @@ function Troubleshooting(){
       Simply rename the function in one of the modules or consider making it a component if you plan on using it frequently.  
       </Collapsible>
 
+      <h4>Failed Pipelines</h4>
+      <Collapsible title="error TS6133: 'event' is declared but its value is never read.">
+        <h6>Example</h6>
+        HorizontalTimeline.tsx: 
+        <div className="error">
+          $ yarn build
+          <p>yarn run v1.22.19</p>
+          <p>$ tsc && vite build</p>
+          <p>src/components/HorizontalTimeline.tsx(67,23): error TS6133: 'event' is declared but its value is never read.
+          error Command failed with exit code 2.</p>
+          <p>info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.</p>
+          </div>
+        <p>in</p>
+        <code>
+        const openPop =  (event : React.MouseEvent&lt;HTMLButtonElement, MouseEvent&gt;) =&gt; {}
+        </code>
+        <h6>Solutions</h6>
+      </Collapsible>
+      
     </div>
   )
 }
\ No newline at end of file
-- 
GitLab