diff --git a/package.json b/package.json index 001f408..331f627 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,10 @@ "http": "^0.0.1-security", "jsonwebtoken": "^9.0.2", "lucide-react": "^0.479.0", - "react": "^19.0.0", + "react": "^18.2.0", "react-chartjs-2": "^5.3.0", - "react-dom": "^19.0.0", - "react-router-dom": "^7.3.0", + "react-dom": "^18.2.0", + "react-router-dom": "^6.14.2", "react-scripts": "5.0.1", "sanitize-html": "^2.14.0", "socket.io-client": "^4.8.1", diff --git a/src/pages/Home2.js b/src/pages/Home2.js index 1a56aa9..9c381b6 100644 --- a/src/pages/Home2.js +++ b/src/pages/Home2.js @@ -1,5 +1,4 @@ import React, { useState, useEffect } from 'react'; -import { BarChart2, Calendar, RefreshCw, Clock, ChevronLeft, ChevronRight } from 'lucide-react'; import axios from 'axios'; import TodaysMatch from './TodaysMatch'; import Footer from './Footer'; @@ -344,7 +343,7 @@ const Home2 = () => { {/* Contact Link */}
- Click to contact us ➡ Click Here + Click to contact us ➡
{/* Timestamp */} diff --git a/src/pages/Today.js b/src/pages/Today.js index bfd6471..fee0e16 100644 --- a/src/pages/Today.js +++ b/src/pages/Today.js @@ -117,7 +117,7 @@ const MatkaResultsDashboard = () => { setError("Failed to load today's Matka data. Please try again later."); setLoading(false); } - }, []); + }, [API_URL, normalizedMatkaTeamInfo]); useEffect(() => { fetchTodaysResults(); diff --git a/src/pages/TodaysMatch.js b/src/pages/TodaysMatch.js index 133d19c..851839e 100644 --- a/src/pages/TodaysMatch.js +++ b/src/pages/TodaysMatch.js @@ -68,7 +68,7 @@ const TodaysMatch = () => { setError("Failed to load match data. Please try again later."); setLoading(false); } - }, []); + }, [API_URL]); // On component mount useEffect(() => { @@ -170,8 +170,8 @@ const TodaysMatch = () => { 📞 7830467644