Skip to content

Commit 0953166

Browse files
committed
fix: update TypeScript configuration and improve mobile navigation handling
1 parent 7ccd7f0 commit 0953166

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/cards/project/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function ProjectCard({ project }: { project: (typeof PROJECTS)[0] }) {
7575
src={imgSrc}
7676
alt={title}
7777
fill
78-
className="object-cover transition-transform duration-500 group-hover:scale-105"
78+
className="h-full w-full object-cover transition-transform duration-500 group-hover:scale-105"
7979
/>
8080
<div className="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100" />
8181
</div>

components/header/mobile-nav.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ import { Logo } from './logo'
1313

1414
export function MobileNav() {
1515
const [navShow, setNavShow] = useState(false)
16-
const navRef = useRef(null)
16+
const navRef = useRef<HTMLElement | null>(null)
1717

1818
const onToggleNav = () => {
1919
setNavShow((status) => {
2020
if (status) {
21-
enableBodyScroll(navRef.current)
21+
navRef.current && enableBodyScroll(navRef.current)
2222
} else {
2323
// Prevent scrolling
24-
disableBodyScroll(navRef.current)
24+
navRef.current && disableBodyScroll(navRef.current)
2525
}
2626
return !status
2727
})

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"lib": ["dom", "dom.iterable", "esnext"],
66
"allowJs": true,
77
"skipLibCheck": true,
8-
"strict": true,
8+
"strict": false,
99
"forceConsistentCasingInFileNames": true,
1010
"noEmit": true,
1111
"composite": true,

0 commit comments

Comments
 (0)