diff --git a/frontend/package.json b/frontend/package.json index 295b508..5ce0f51 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,15 +11,15 @@ "dependencies": { "@proton/web-sdk": "^4.2.0", "@vercel/analytics": "^1.6.1", - "next": "^16.1.6", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "next": "^16.2.6", + "react": "^19.2.6", + "react-dom": "^19.2.6", "three": "^0.182.0" }, "devDependencies": { "@types/node": "^20.0.0", - "@types/react": "^18.2.0", - "@types/react-dom": "^18.2.0", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", "@types/three": "^0.182.0", "autoprefixer": "^10.4.0", "postcss": "^8.4.0", diff --git a/frontend/src/hooks/useCountUp.ts b/frontend/src/hooks/useCountUp.ts index 6cc0936..0701463 100644 --- a/frontend/src/hooks/useCountUp.ts +++ b/frontend/src/hooks/useCountUp.ts @@ -2,7 +2,7 @@ import { useState, useEffect, useRef } from 'react'; export function useCountUp(target: number, duration = 1000, enabled = true): number { const [value, setValue] = useState(0); - const rafRef = useRef(); + const rafRef = useRef(null); useEffect(() => { if (!enabled || target === 0) { diff --git a/frontend/src/lib/registry.ts b/frontend/src/lib/registry.ts index 84d9d25..f7591aa 100644 --- a/frontend/src/lib/registry.ts +++ b/frontend/src/lib/registry.ts @@ -369,7 +369,7 @@ export async function getAllJobs(limit = 500): Promise { const pageSize = Math.min(limit, 100); while (allJobs.length < limit) { - const result = await rpc.get_table_rows({ + const result: any = await rpc.get_table_rows({ json: true, code: CONTRACTS.AGENT_ESCROW, scope: CONTRACTS.AGENT_ESCROW, @@ -379,7 +379,7 @@ export async function getAllJobs(limit = 500): Promise { ...(lower_bound ? { upper_bound: lower_bound } : {}), }); - const rows = result.rows; + const rows: any[] = result.rows; if (rows.length === 0) break; for (const row of rows) {