From c4cb0d069d810c14fadd1a1e1f405c411a20a429 Mon Sep 17 00:00:00 2001 From: Moinul Moin Date: Mon, 29 May 2023 16:42:45 +0600 Subject: [PATCH] chore: update husky pre-commit --- .husky/pre-commit | 6 +++++- src/components/ui/dialog.tsx | 4 ++-- src/components/ui/dropdown-menu.tsx | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 6130f92..79bf55a 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,8 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -pnpm lint:fix && pnpm format \ No newline at end of file +# Run lint and format before each commit +pnpm lint:fix && pnpm format + +# Add the changes to the staging area +git add . \ No newline at end of file diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 507ed05..eb808cf 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -30,7 +30,7 @@ const DialogOverlay = React.forwardRef<