From c123f364a79426fc93ae887eb06342355759061e Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Thu, 13 Feb 2025 16:16:09 -0500 Subject: [PATCH 1/3] Adding some prettier updates --- .prettierignore | 2 ++ package.json | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..aa6774227 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +# ignore all the shadcn components from formatting +resources/js/components/ui/* \ No newline at end of file diff --git a/package.json b/package.json index 1279aa037..c7ce7c0b3 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "build": "vite build", "build:ssr": "vite build && vite build --ssr", "dev": "vite", - "format": "prettier --write .", - "format:check": "prettier --check .", + "format": "prettier --write resources/", + "format:check": "prettier --check resources/", "lint": "eslint . --fix" }, "devDependencies": { @@ -55,4 +55,4 @@ "tailwind-merge": "^2.5.5", "tailwindcss-animate": "^1.0.7" } -} +} \ No newline at end of file From 75f6139b93eb64c442b2619fbbda5782e81e6e88 Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Thu, 13 Feb 2025 16:49:43 -0500 Subject: [PATCH 2/3] Adding fix for click issue --- resources/js/hooks/use-mobile-navigation.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/resources/js/hooks/use-mobile-navigation.ts b/resources/js/hooks/use-mobile-navigation.ts index 174b776ce..e4869c067 100644 --- a/resources/js/hooks/use-mobile-navigation.ts +++ b/resources/js/hooks/use-mobile-navigation.ts @@ -4,13 +4,7 @@ export function useMobileNavigation() { const cleanup = useCallback(() => { // Remove pointer-events style from body... document.body.style.removeProperty('pointer-events'); - - // Find and click the close button of any open sheet... - const closeButton = document.querySelector('[data-radix-collection-item]'); - - if (closeButton instanceof HTMLElement) { - closeButton.click(); - } + }, []); return cleanup; From ae661c9341ac4f07e1d0210dbf48e62632d2632c Mon Sep 17 00:00:00 2001 From: tnylea <601261+tnylea@users.noreply.github.com> Date: Thu, 13 Feb 2025 21:52:57 +0000 Subject: [PATCH 3/3] fix code style --- resources/js/hooks/use-mobile-navigation.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/js/hooks/use-mobile-navigation.ts b/resources/js/hooks/use-mobile-navigation.ts index e4869c067..e853726d8 100644 --- a/resources/js/hooks/use-mobile-navigation.ts +++ b/resources/js/hooks/use-mobile-navigation.ts @@ -4,7 +4,6 @@ export function useMobileNavigation() { const cleanup = useCallback(() => { // Remove pointer-events style from body... document.body.style.removeProperty('pointer-events'); - }, []); return cleanup;