Skip to content

Commit

Permalink
Resolve promise-returning function error in PageContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
LillianHo5 committed May 27, 2024
1 parent b823f11 commit d0a9a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin-portal-frontend/src/app/components/PageContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type PageItemProps = {
title: string;
page: string;
visibility?: boolean;
onDeletePage: (categoryId: string, pageTitle: string) => void;
onDeletePage: (categoryId: string, pageTitle: string) => Promise<void>;
};

const PageItem: React.FC<PageItemProps> = ({ id, page, categoryId, title, onDeletePage }) => {
Expand Down

0 comments on commit d0a9a23

Please sign in to comment.