Skip to content
Snippets Groups Projects
Commit 4ac27782 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

fixed event is declared but never read

parent 11d770aa
No related branches found
No related tags found
No related merge requests found
Pipeline #389474 passed
......@@ -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");
}
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment