Skip to content

Commit 895c1cb

Browse files
committed
Merge branch 'dev' into shadcn-footer-link
2 parents 11c69e3 + 0021ff3 commit 895c1cb

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"devDependencies": {
7979
"@chakra-ui/cli": "^2.4.1",
8080
"@chromatic-com/storybook": "1.5.0",
81-
"@netlify/plugin-nextjs": "^5.0.0",
81+
"@netlify/plugin-nextjs": "^5.5.1",
8282
"@storybook/addon-essentials": "8.1.10",
8383
"@storybook/addon-interactions": "8.1.10",
8484
"@storybook/addon-links": "8.1.10",

src/@chakra-ui/components/Button.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const baseStyle = defineStyle({
1414
borderRadius: "base",
1515
border: "1px",
1616
color: "primary.base",
17+
fontWeight: "normal",
1718
lineHeight: "1.6",
1819
transitionProperty: "common",
1920
transitionDuration: "normal",

src/components/LazyLoadComponent.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const LazyLoadComponent = <T extends React.ElementType>({
1717
const ref = useRef<HTMLDivElement>(null)
1818

1919
useEffect(() => {
20+
const obsRef = ref.current
21+
2022
const observer = new IntersectionObserver(([entry]) => {
2123
// Update the state when observer callback fires
2224
if (entry.isIntersecting) {
@@ -25,17 +27,17 @@ const LazyLoadComponent = <T extends React.ElementType>({
2527
}
2628
}, intersectionOptions)
2729

28-
if (ref.current) {
29-
observer.observe(ref.current)
30+
if (obsRef) {
31+
observer.observe(obsRef)
3032
}
3133

3234
// Clean up the observer on component unmount
3335
return () => {
34-
if (ref.current) {
36+
if (obsRef) {
3537
observer.disconnect()
3638
}
3739
}
38-
}, [])
40+
}, [intersectionOptions])
3941

4042
return (
4143
<div ref={ref}>

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3624,10 +3624,10 @@
36243624
pump "^3.0.0"
36253625
tar-fs "^2.1.1"
36263626

3627-
"@netlify/plugin-nextjs@^5.0.0":
3628-
version "5.3.2"
3629-
resolved "https://registry.yarnpkg.com/@netlify/plugin-nextjs/-/plugin-nextjs-5.3.2.tgz#c8faf96631d2eaf35c0f1c0afa5b4da3d3cefdc0"
3630-
integrity sha512-DC3sNpWnnhIfJxAfqdktbkU2LxYUDKCVQnxqEhJSyheQ5G9ILu1spUKa5pEe8X2EvtH8FwtMAc7Gi5h6pft22A==
3627+
"@netlify/plugin-nextjs@^5.5.1":
3628+
version "5.5.1"
3629+
resolved "https://registry.yarnpkg.com/@netlify/plugin-nextjs/-/plugin-nextjs-5.5.1.tgz#463ac58b59a1732f6de7dd7ad9fda484e4509f6f"
3630+
integrity sha512-E0LP4HI6F1Us0va+rCpu9ecJh1GumoH/plQDvAteZv0C4nSP19tn1H+tJUjpVVDsoj6MWIB97ssMh8K0gen1zA==
36313631

36323632
36333633
version "14.2.3"

0 commit comments

Comments
 (0)