Skip to content

Commit

Permalink
add data optional so we can use form for create new
Browse files Browse the repository at this point in the history
  • Loading branch information
sangdth committed Sep 15, 2023
1 parent 62290ea commit f19de05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { DeleteSection } from './DeleteSection';
export type PageFormProps = {
title?: string;
backPath?: string;
data: Page | null;
data?: Page | null;
};

export const PageForm = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { DeleteSection } from './DeleteSection';
export type PostFormProps = {
title?: string;
backPath?: string;
data: Post | null;
data?: Post | null;
};

export const PostForm = ({
Expand Down

0 comments on commit f19de05

Please sign in to comment.