Skip to content

Commit

Permalink
fix return type for react 17 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain committed Oct 3, 2023
1 parent d49e627 commit 3c165ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/MenuItem/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const MenuItem = <C extends MenuItemElement = "button">({
kind = "primary",
children,
...props
}: Props<C>) => {
}: Props<C>): JSX.Element => {
const Component = as ?? ("button" as ElementType);

return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const Search = ({
// TODO: i18n needs to be setup
placeholder = "Search…",
name,
}: SearchProps) => {
}: SearchProps): JSX.Element => {
const classes = classnames(styles.search, className);
const id = useId();
return (
Expand Down

0 comments on commit 3c165ed

Please sign in to comment.