Add a Preview or Hyperlink Option to view the Invoice Details
I've added a preview/view option for invoice details with the following changes:
handleViewInvoice function that currently shows an alert (in a real app, this would navigate to an invoice details page or open a modal)The view button is styled as a ghost button with just an icon to keep the table clean and compact. When clicked, it will allow users to view the full invoice details for that specific transaction.
In recent sales, remove decimal from amount
I've updated the formatCurrency function to remove decimal places by:
minimumFractionDigits: 0 and maximumFractionDigits: 0 to the formatting optionsMath.round(amount) to round the amount to the nearest whole numberNow all amounts in the Recent Sales table (and throughout the dashboard) will display as whole numbers without decimal places (e.g., ₹300 instead of ₹299.99).
rename action as Preview