Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ritesh0604 committed Nov 25, 2023
2 parents ce379b4 + 3782170 commit 9afeecb
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const SportComplexTable = ({ districtId }) => {

return (
<>
<h2 className="text-center text-2xl m-2 font-bold">Top 5 Sport Complex</h2>
<h2 className="text-center text-2xl m-2 font-bold">
Top 5 Sport Complex
</h2>
<table className="w-11/12 m-auto bg-white border border-gray-300 p-datatable ">
<thead>
<tr>
Expand All @@ -32,15 +34,18 @@ const SportComplexTable = ({ districtId }) => {
{sportComplexes.map((complex) => (
<tr key={complex.id}>
<td className="py-2 px-4 border-b">{complex.name}</td>
<td className="py-2 px-4 border-b">{complex.location}</td>
<td className="py-2 px-4 border-b text-blue-400">
<a href={complex.location} target="_blank" rel="noreferrer">
Sport complex Location
</a>
</td>
<td className="py-2 px-4 border-b">
{complex.averageRating ? complex.averageRating.toFixed(2) : ""}
</td>
</tr>
))}
</tbody>
</table>

</>
);
};
Expand Down

0 comments on commit 9afeecb

Please sign in to comment.