aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/ErrorDisplay.tsx
diff options
context:
space:
mode:
authorCopilot <198982749+Copilot@users.noreply.github.com>2025-11-17 23:39:08 +0100
committerGitHub <noreply@github.com>2025-11-17 23:39:08 +0100
commit276e73412abef28c222c52a84334d49f5e414f3c (patch)
tree8b7ae07eafa53f9efc5884e4f0696e6077266f48 /src/frontend/app/components/ErrorDisplay.tsx
parent36d982fb3b01fd8181b216b57fba2c42e9404d1f (diff)
Use consolidated data API in map sheet with shared card component (#100)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> Co-authored-by: Ariel Costas Guerrero <ariel@costas.dev>
Diffstat (limited to 'src/frontend/app/components/ErrorDisplay.tsx')
-rw-r--r--src/frontend/app/components/ErrorDisplay.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/app/components/ErrorDisplay.tsx b/src/frontend/app/components/ErrorDisplay.tsx
index f63c995..a2f40c8 100644
--- a/src/frontend/app/components/ErrorDisplay.tsx
+++ b/src/frontend/app/components/ErrorDisplay.tsx
@@ -38,25 +38,25 @@ export const ErrorDisplay: React.FC<ErrorDisplayProps> = ({
case "network":
return t(
"errors.network",
- "No hay conexión a internet. Comprueba tu conexión y vuelve a intentarlo.",
+ "No hay conexión a internet. Comprueba tu conexión y vuelve a intentarlo."
);
case "server":
if (error.status === 404) {
return t(
"errors.not_found",
- "No se encontraron datos para esta parada.",
+ "No se encontraron datos para esta parada."
);
}
if (error.status === 500) {
return t(
"errors.server_error",
- "Error del servidor. Inténtalo de nuevo más tarde.",
+ "Error del servidor. Inténtalo de nuevo más tarde."
);
}
if (error.status && error.status >= 400) {
return t(
"errors.client_error",
- "Error en la solicitud. Verifica que la parada existe.",
+ "Error en la solicitud. Verifica que la parada existe."
);
}
return t("errors.server_generic", "Error del servidor ({{status}})", {