diff --git a/src/components/HorizontalTimeline.tsx b/src/components/HorizontalTimeline.tsx index 3fd6ced34556dac3d9efc233017ddafe5cad71fa..f32d898b46a7c4e5266331cecd8983241dbee09e 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 5a986cae3c89bc08138fb1df90acba272ef56e0a..86c47b05d8080533b9c7024b3d76fea0528161d1 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<HTMLButtonElement, MouseEvent>) => {} + </code> + <h6>Solutions</h6> + </Collapsible> + </div> ) } \ No newline at end of file