refactor(trainings.tsx): link to training page to a singular form
This commit is contained in:
parent
623b018a1b
commit
1f47d29843
1 changed files with 2 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ export const getServerSideProps: GetServerSideProps = async ({ req, res }) => {
|
|||
select: {
|
||||
id: true,
|
||||
name: true,
|
||||
slug: true,
|
||||
days: true,
|
||||
draft: true,
|
||||
priceOpen: true,
|
||||
|
|
@ -83,7 +84,7 @@ function Table({trainings}: { trainings: Training[] }) {
|
|||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{formatCurrency(training.priceOpen)}</td>
|
||||
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{formatCurrency(training.priceCorporate)}</td>
|
||||
<td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
|
||||
<Link href={"/trainings/" + training.id} className="text-black underline">
|
||||
<Link href={"/training/" + training.slug} className="text-black underline">
|
||||
Detail<span className="sr-only"> of {training.name}</span>
|
||||
</Link>
|
||||
</td>
|
||||
|
|
|
|||
Reference in a new issue