Skip to content

Commit

Permalink
dashbord error
Browse files Browse the repository at this point in the history
  • Loading branch information
thakiyudheen committed Jul 16, 2024
1 parent 821603a commit e20b8d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Components/common/user/Dashboard/Dashbord.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ const Dashboard = () => {

<div className='dark:bg-gray-800 p-5 mt-8 rounded-lg bg-white shadow-lg'>

<h1 className='font-bold mt-3 dark:text-gray-400 text-gray-500'>Recent Payments</h1>
{/* <h1 className='font-bold mt-3 dark:text-gray-400 text-gray-500'>Recent Payments</h1> */}
<div className="overflow-hidden w-full mt-4 mb-4 h-[240px]">
<div className="overflow-x-auto rounded-lg">
<table className="table-auto w-full ">
{/* <table className="table-auto w-full ">
<thead>
<tr className="border-b border-gray-900 dark:text-gray-400 text-black dark:text-gray-400 text-center">
<th className='py-2'>No</th>
Expand All @@ -163,7 +163,7 @@ const Dashboard = () => {
</tr>
))}
</tbody>
</table>
</table> */}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/instructor/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const Dashboard = () => {
{payment.map((payment: any, index: any) => (
<tr key={payment._id} className="text-center dark:text-gray-400 text-black py-7 border-b border-gray-300 dark:border-gray-900 dark:hover:bg-gray-800">
<td className='py-4'>{index + 1}</td>
<td>{payment.userId.firstName}</td>
<td>{payment?.userId?.firstName}</td>
<td>{payment.amount}</td>
<td><div className="badge badge-primary">{payment.status}</div></td>
<td>{formatDate(payment.createdAt)}</td>
Expand Down

0 comments on commit e20b8d7

Please sign in to comment.