Skip to content

Commit

Permalink
Fix delete function typing
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardLinS committed May 27, 2024
1 parent 27f7f1a commit 6b86462
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import EditIcon from "../icons/edit.svg";
import TrashIcon from "../icons/trash.svg";

import DeleteConfirmationPopup from "./DeletePopup";

import { Category } from "./categoryRoutes";

type IconProps = {
Expand Down Expand Up @@ -93,7 +92,7 @@ const CategoryItem: React.FC<CategoryItemProps> = ({ id, title, pages, onDeleteC
export const CategoryContainer: React.FC<{
items: Category[];
type: string;
onDeleteCategory: (categoryId: string) => Promise<void>;
onDeleteCategory: (categoryId: string) => Promise<void> | void;
}> = ({ items: categories, type, onDeleteCategory }) => {
return (
<table>
Expand Down

0 comments on commit 6b86462

Please sign in to comment.