diff --git a/apps/blog/src/components/DrawerComment/index.tsx b/apps/blog/src/components/DrawerComment/index.tsx index a64f3560..94a16d60 100644 --- a/apps/blog/src/components/DrawerComment/index.tsx +++ b/apps/blog/src/components/DrawerComment/index.tsx @@ -7,16 +7,20 @@ import CommentAvatar from "#components/CommentAvatar"; import Typography from "#components/Typography"; import styles from "./index.module.scss"; +export interface DrawerCommentProps { + closeDrawer(): void; +} + const cx = classNames(styles, "drawer-comment"); -function DrawerComment() { +function DrawerComment({ closeDrawer }: DrawerCommentProps) { const { data } = useComments({ count: 6 }); return (
    {data.map(({ _id: id, name, url, body, createdAt, byPostAuthor, postSlug }) => (
  1. - +
    diff --git a/apps/blog/src/components/DrawerContent/index.tsx b/apps/blog/src/components/DrawerContent/index.tsx index 6ebd1ee6..0f871adb 100644 --- a/apps/blog/src/components/DrawerContent/index.tsx +++ b/apps/blog/src/components/DrawerContent/index.tsx @@ -95,7 +95,7 @@ function DrawerContent({ opened, closeDrawer, willClose, setWillClose }: DrawerC - +