1
0
Fork 0

refactor(trainings.tsx): link to training page to a singular form

This commit is contained in:
Vojtěch Mareš 2023-06-26 20:38:19 +02:00
parent 623b018a1b
commit 1f47d29843
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -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>