Skip to content

Commit 3c8a01b

Browse files
committed
formatting
1 parent 72b1fed commit 3c8a01b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

resources/js/components/app-shell.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export function AppShell({ children, variant = 'header' }: AppShellProps) {
1111

1212
const handleSidebarChange = (open: boolean) => {
1313
setIsOpen(open);
14+
1415
if (typeof window !== 'undefined') {
1516
localStorage.setItem('sidebar', String(open));
1617
}

resources/js/hooks/use-appearance.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ const handleSystemThemeChange = () => {
1818

1919
export function initializeTheme() {
2020
const savedAppearance = (localStorage.getItem('appearance') as Appearance) || 'system';
21+
2122
applyTheme(savedAppearance);
2223

23-
// Add the event listener for system theme changes
24+
// Add the event listener for system theme changes...
2425
mediaQuery.addEventListener('change', handleSystemThemeChange);
2526
}
2627

resources/js/hooks/use-mobile-navigation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { useCallback } from 'react';
22

33
export function useMobileNavigation() {
44
const cleanup = useCallback(() => {
5-
// Remove pointer-events style from body
5+
// Remove pointer-events style from body...
66
document.body.style.removeProperty('pointer-events');
7-
// Find and click the close button of any open sheet
7+
// Find and click the close button of any open sheet...
88
const closeButton = document.querySelector('[data-radix-collection-item]');
99
if (closeButton instanceof HTMLElement) {
1010
closeButton.click();

resources/js/lib/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ export function cn(...inputs: ClassValue[]) {
66
}
77

88
export function cleanupMobileNavigation() {
9-
// Remove pointer-events style from body
9+
// Remove pointer-events style from body...
1010
document.body.style.removeProperty('pointer-events');
1111

12-
// Dispatch a custom event that the sidebar can listen to
12+
// Dispatch a custom event that the sidebar can listen to...
1313
window.dispatchEvent(new CustomEvent('mobile-navigation'));
1414
}

0 commit comments

Comments
 (0)