task table fixed

This commit is contained in:
Sibunnayak 2024-11-15 10:50:04 +05:30
parent 1aac5f664f
commit f2ebae81b0

View File

@ -122,7 +122,7 @@ const Tasks = () => {
<label>TM Name:</label>
<input
type="text"
placeholder="Trade name"
placeholder="TM name"
className="form-control"
ref={tmnameRef}
onChange={handleSearchChange}
@ -133,7 +133,7 @@ const Tasks = () => {
<label>SC Name:</label>
<input
type="text"
placeholder="Trade name"
placeholder="SC name"
className="form-control"
ref={scnameRef}
onChange={handleSearchChange}
@ -174,9 +174,9 @@ const Tasks = () => {
<option value="Completed">Completed</option>
</select>
</div>
</div>
</div>
<style jsx>{`
<style jsx>{`
@media (max-width: 1200px) {
.col-lg-1 {
flex: 0 0 20%;
@ -205,7 +205,7 @@ const Tasks = () => {
max-width: 100%;
}
}
`}</style>
`}</style>
<div className="table-responsive table-shoot mt-3">
<table
@ -230,7 +230,7 @@ const Tasks = () => {
className="text-start"
style={{ border: "1px solid" }}
>
Due Date
Task Assigned Date
</th>
<th
className="text-start"
@ -250,6 +250,12 @@ const Tasks = () => {
>
Sales Coordinator
</th>
<th
className="text-start"
style={{ border: "1px solid" }}
>
Due Date
</th>
<th
className="text-start"
style={{ border: "1px solid" }}
@ -283,7 +289,7 @@ const Tasks = () => {
className="text-start"
style={{ border: "1px solid" }}
>
{new Date(task.taskDueDate).toLocaleString(
{new Date(task.createdAt).toLocaleString(
"en-IN",
{
month: "short",
@ -310,6 +316,19 @@ const Tasks = () => {
>
{task.taskAssignedTo.name}
</td>
<td
className="text-start"
style={{ border: "1px solid" }}
>
{new Date(task.taskDueDate).toLocaleString(
"en-IN",
{
month: "short",
day: "numeric",
year: "numeric",
}
)}
</td>
<td
className="text-start"
style={{ border: "1px solid" }}