Skip to content

Commit

Permalink
chore: add jsdoc annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jimniels committed Oct 15, 2023
1 parent f7a8d32 commit c1d8ce7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/components/ReadlistArticles.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { useState, useRef } = React;
* @param {object} props
* @param {Readlist} props.readlist
* @param {SetStateReadlist} props.setReadlist
* @param {(string) => void} props.setArticlePreviewUrl
* @param {(articlePreviewUrl: string) => void} props.setArticlePreviewUrl
*/
export default function ReadlistArticles({
readlist,
Expand Down Expand Up @@ -94,7 +94,7 @@ export default function ReadlistArticles({
${/*<button class="button" disabled>Edit HTML</button>*/ ""}
<button
class="button button--danger"
onClick=${(e) => {
onClick=${() => {
handleDeleteReadlist({
setReadlist,
articleUrl: article.url,
Expand Down Expand Up @@ -142,7 +142,7 @@ function handleUpdateReadlistArticle({
/**
* @param {object} args
* @param {string} args.articleUrl
* @param {(string) => void} args.setArticlePreviewUrl
* @param {(articlePreviewUrl: string) => void} args.setArticlePreviewUrl
*/
function handleSelectReadlistArticle({ setArticlePreviewUrl, articleUrl }) {
setArticlePreviewUrl(articleUrl);
Expand Down

0 comments on commit c1d8ce7

Please # to comment.