Skip to content

Commit d9ba75e

Browse files
committed
Refactor
1 parent a68281f commit d9ba75e

7 files changed

Lines changed: 5 additions & 16 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
echo "NEXT_PUBLIC_RECAPTCHA_SITE_KEY=123fAkE" >> .env
1818
- uses: actions/setup-node@v6
1919
with:
20-
node-version: '24'
20+
node-version: '24.x'
2121
- name: Install dependencies
2222
run: npm ci
2323
- name: Install Playwright Browsers

.github/workflows/validate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
timeout-minutes: 60
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
12+
- uses: actions/checkout@v6
13+
- uses: actions/setup-node@v6
1414
with:
15-
node-version: '20.x'
15+
node-version: '24.x'
1616
- name: Install dependencies
1717
run: npm ci
1818
- name: Run code validation (includes linting, prettier and building)

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import './.next/dev/types/routes.d.ts';
3+
import './.next/types/routes.d.ts';
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

src/components/ContactUs/ContactUs.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ export default function ContactUs() {
66
const [screenWidth, setScreenWidth] = useState<number | null>(null);
77

88
useEffect(() => {
9-
// Defer the initial set to avoid synchronous setState inside the effect
10-
// which can cause cascading renders. Use requestAnimationFrame so the
11-
// update runs after the browser paints.
129
const rafId = requestAnimationFrame(() =>
1310
setScreenWidth(window.innerWidth)
1411
);

src/components/HeroHeader/HeroHeader.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ export default function HeroHeader() {
88
const breakpoint = 768;
99

1010
useEffect(() => {
11-
// Defer the initial set to avoid synchronous setState inside the effect
12-
// which can cause cascading renders. Use requestAnimationFrame so the
13-
// update runs after the browser paints.
1411
const rafId = requestAnimationFrame(() =>
1512
setScreenWidth(window.innerWidth)
1613
);

src/components/HeroHeader/MobileHero.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import LinkButton from '../LinkButton/LinkButton';
2-
// Use the `public/` folder via a URL path (no import).
3-
// The image is served from `/images/hero-image.jpg`.
42

53
export default function MobileHero() {
64
return (

src/components/Navbar/Navbar.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ export default function Navbar() {
1212
const breakpoint = 768;
1313

1414
useEffect(() => {
15-
// Defer the initial set to avoid synchronous setState inside the effect
16-
// which can cause cascading renders. Use requestAnimationFrame so the
17-
// update runs after the browser paints.
1815
const rafId = requestAnimationFrame(() =>
1916
setScreenWidth(window.innerWidth)
2017
);

0 commit comments

Comments
 (0)