Skip to content

Commit

Permalink
Change delete function return type
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardLinS committed May 27, 2024
1 parent 76934ec commit 257e0bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const CategoryItem: React.FC<CategoryItemProps> = ({ id, title, pages, onDeleteC
export const CategoryContainer: React.FC<{
items: Category[];
type: string;
onDeleteCategory: (categoryId: string) => Promise<undefined>;
onDeleteCategory: (categoryId: string) => Promise<void>;
}> = ({ items: categories, type, onDeleteCategory }) => {
return (
<table>
Expand Down

0 comments on commit 257e0bc

Please sign in to comment.