Merge pull request 's11' (#29) from tmp3 into main

Reviewed-on: #29
pull/32/head
Subhodip Ghosh 2025-04-04 14:29:21 +00:00
commit ee2bbc817f
1 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ interface Message {
user_type: string;
}
const API_URL = 'http://localhost:2058/host-api/v1/ticket/index.php';
const API_URL = 'http://localhost:2058/host-api/app/v1/ticket/index.php';
function Ticketing() {
const [tickets, setTickets] = useState<Ticket[]>([]);
@ -206,8 +206,8 @@ function Ticketing() {
<thead>
<tr className="bg-neutral-800 text-white">
{
tableHeaders.map((thead) => (
<th className={`p-2 text-center border-[1px] border-[#6d9e37]`}>{thead}</th>
tableHeaders.map((thead, index) => (
<th key={index} className={`p-2 text-center border-[1px] border-[#6d9e37]`}>{thead}</th>
))
}
</tr>
@ -217,7 +217,7 @@ function Ticketing() {
<tbody className="[&>tr:nth-child(even)]:bg-[#262626]">
{
tableData.map((data, index) => (
<tr>
<tr key={index}>
<td className="px-2 border-[1px] border-[#6d9e37] font-medium">{data.id}</td>
<td className="px-2 border-[1px] border-[#6d9e37] font-medium">{data.title}</td>
<td className="px-2 border-[1px] border-[#6d9e37] font-medium">{data.description}</td>