fix: update React and related dependencies; change links to buttons for better accessibility
This commit is contained in:
parent
b0fdc16d49
commit
a8ed8028ca
@ -13,10 +13,10 @@
|
|||||||
"http": "^0.0.1-security",
|
"http": "^0.0.1-security",
|
||||||
"jsonwebtoken": "^9.0.2",
|
"jsonwebtoken": "^9.0.2",
|
||||||
"lucide-react": "^0.479.0",
|
"lucide-react": "^0.479.0",
|
||||||
"react": "^19.0.0",
|
"react": "^18.2.0",
|
||||||
"react-chartjs-2": "^5.3.0",
|
"react-chartjs-2": "^5.3.0",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-router-dom": "^7.3.0",
|
"react-router-dom": "^6.14.2",
|
||||||
"react-scripts": "5.0.1",
|
"react-scripts": "5.0.1",
|
||||||
"sanitize-html": "^2.14.0",
|
"sanitize-html": "^2.14.0",
|
||||||
"socket.io-client": "^4.8.1",
|
"socket.io-client": "^4.8.1",
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import { BarChart2, Calendar, RefreshCw, Clock, ChevronLeft, ChevronRight } from 'lucide-react';
|
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import TodaysMatch from './TodaysMatch';
|
import TodaysMatch from './TodaysMatch';
|
||||||
import Footer from './Footer';
|
import Footer from './Footer';
|
||||||
@ -344,7 +343,7 @@ const Home2 = () => {
|
|||||||
|
|
||||||
{/* Contact Link */}
|
{/* Contact Link */}
|
||||||
<p className="mt-2 text-white font-medium bg-gray-800 p-2 rounded w-full lg:w-3/4 m-auto">
|
<p className="mt-2 text-white font-medium bg-gray-800 p-2 rounded w-full lg:w-3/4 m-auto">
|
||||||
Click to contact us ➡ <a href="#" className="underline text-red-400 hover:text-red-300">Click Here</a>
|
Click to contact us ➡ <button className="underline text-red-400 hover:text-red-300">Click Here</button>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{/* Timestamp */}
|
{/* Timestamp */}
|
||||||
|
|||||||
@ -117,7 +117,7 @@ const MatkaResultsDashboard = () => {
|
|||||||
setError("Failed to load today's Matka data. Please try again later.");
|
setError("Failed to load today's Matka data. Please try again later.");
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
}, []);
|
}, [API_URL, normalizedMatkaTeamInfo]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchTodaysResults();
|
fetchTodaysResults();
|
||||||
|
|||||||
@ -68,7 +68,7 @@ const TodaysMatch = () => {
|
|||||||
setError("Failed to load match data. Please try again later.");
|
setError("Failed to load match data. Please try again later.");
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
}, []);
|
}, [API_URL]);
|
||||||
|
|
||||||
// On component mount
|
// On component mount
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -170,8 +170,8 @@ const TodaysMatch = () => {
|
|||||||
<span className="text-red-600 font-bold text-lg">📞 7830467644</span>
|
<span className="text-red-600 font-bold text-lg">📞 7830467644</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
<a href="#" className="bg-green-600 text-white font-bold py-2 rounded hover:bg-green-700 transition">CALL NOW</a>
|
<button className="bg-green-600 text-white font-bold py-2 rounded hover:bg-green-700 transition">CALL NOW</button>
|
||||||
<a href="#" className="bg-blue-600 text-white font-bold py-2 rounded hover:bg-blue-700 transition">WHATSAPP NOW</a>
|
<button className="bg-blue-600 text-white font-bold py-2 rounded hover:bg-blue-700 transition">WHATSAPP NOW</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user