Skip to content

Commit f9253a4

Browse files
authored
Merge pull request #33 from takker99/fix-additem
🐛 `Item.onClick`に渡されるeventの型が違っていた
2 parents 9874698 + 3ff5d31 commit f9253a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pageMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type Item = {
1717
/** the URL of an image which views on the left of the title */
1818
image?: string;
1919
/** the event listener which is executed when the menu item is clicked */
20-
onClick: (event: React.MouseEvent<HTMLImageElement>) => void;
20+
onClick: (event: React.MouseEvent<HTMLAnchorElement>) => void;
2121
};
2222

2323
export declare class PageMenu extends BaseStore {

0 commit comments

Comments
 (0)