diff --git a/front/src/pods/embalse-cuenca/embalse-cuenca.component.tsx b/front/src/pods/embalse-cuenca/embalse-cuenca.component.tsx index 2e5879e..ee51916 100644 --- a/front/src/pods/embalse-cuenca/embalse-cuenca.component.tsx +++ b/front/src/pods/embalse-cuenca/embalse-cuenca.component.tsx @@ -1,8 +1,8 @@ -"use client"; import { Card } from "@/common/components/card.component"; import { Lookup } from "@/common/models"; import { generateSlug } from "db-model"; import Link from "next/link"; +import { formatEmbalseDisplayName } from "@/pods/embalse/embalse-name.helper"; export interface Props { nombreCuenca: string; @@ -26,7 +26,7 @@ export const EmbalseCuencaComponent: React.FC = (props) => { href={`/embalse/${generateSlug(name)}`} className="link-accessible" > - {name} + {formatEmbalseDisplayName(name)} ))} diff --git a/front/src/pods/embalse-provincia/embalse-provincia.component.tsx b/front/src/pods/embalse-provincia/embalse-provincia.component.tsx index 6f65f1f..ab140ff 100644 --- a/front/src/pods/embalse-provincia/embalse-provincia.component.tsx +++ b/front/src/pods/embalse-provincia/embalse-provincia.component.tsx @@ -2,6 +2,7 @@ import { Card } from "@/common/components/card.component"; import { Lookup } from "@/common/models"; import Link from "next/link"; import React from "react"; +import { formatEmbalseDisplayName } from "@/pods/embalse/embalse-name.helper"; interface Props { nombreProvincia: string; @@ -21,7 +22,7 @@ export const EmbalseProvincia: React.FC = (props) => {
{embalses.map(({ id, name }) => ( - {name} + {formatEmbalseDisplayName(name)} ))}
diff --git a/front/src/pods/embalse/components/reservoir-card-info.component.tsx b/front/src/pods/embalse/components/reservoir-card-info.component.tsx index ee6dd8a..f0b210c 100644 --- a/front/src/pods/embalse/components/reservoir-card-info.component.tsx +++ b/front/src/pods/embalse/components/reservoir-card-info.component.tsx @@ -1,6 +1,6 @@ import { ReservoirInfo } from "../embalse.vm"; import React from "react"; -import Image from "next/image"; +import { formatEmbalseDisplayName } from "@/pods/embalse/embalse-name.helper"; interface Props { reservoirInfo: ReservoirInfo; @@ -14,7 +14,9 @@ export const ReservoirCardInfo: React.FC = (props) => { className="flex w-full flex-col items-start gap-4" aria-labelledby="discover-title" > -

Descubre el embalse {reservoirInfo?.name}

+

+ Descubre el embalse {formatEmbalseDisplayName(reservoirInfo?.name)} +

{reservoirInfo?.description}

{reservoirInfo?.mainPicture?.url && ( <>