Skip to content

Commit

Permalink
Fixed api message errors, and spanglish
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniFdz committed May 26, 2024
1 parent 9c42f12 commit a751cf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/src/components/Grafica.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function Grafica() {
<>
<LineChart width={1000} height={500} data={data} className="custom-chart bg-white p-4 m-4 rounded-md">
<CartesianGrid strokeDasharray="4" />
<XAxis dataKey="timestamp" />
<XAxis />
<YAxis />
<Tooltip />
<Legend />
Expand Down
11 changes: 5 additions & 6 deletions web/src/components/Inputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ const Inputs = () => {
if (!response.ok) {
throw new Error('HTTP error ' + response.status);
}
await response.json();
toast({
title: 'Ok',
description: 'Parámetros guardados correctamente',
Expand All @@ -121,7 +120,7 @@ const Inputs = () => {
return (
<section className="py-4 px-16 grid grid-cols-2 gap-4 w-[650px] items-center">
<span className="col-start-1">
Min Temperature (°C):
Temperatura Min (°C):
</span>
<input
type="text"
Expand All @@ -132,7 +131,7 @@ const Inputs = () => {
/>

<span className="col-start-1">
Max Temperature (°C):
Temperatura Max (°C):
</span>
<input
type="text"
Expand All @@ -143,7 +142,7 @@ const Inputs = () => {
/>

<span className="col-start-1">
Round Duration (s):
Duración rondas (s):
</span>
<input
type="text"
Expand All @@ -156,7 +155,7 @@ const Inputs = () => {
<div style={{ margin: '20px 0', background: 'white', height: '2px', gridColumn: "span 2" }}></div>

<span className="col-start-1">
Meadow measures rate (ms):
Frecuencia medición Meadow (ms):
</span>
<input
type="number"
Expand All @@ -167,7 +166,7 @@ const Inputs = () => {
/>

<span className="col-start-1">
Graph fetch rate (ms):
Frecuencia actualización gráfica (ms):
</span>
<input
type="number"
Expand Down

0 comments on commit a751cf0

Please sign in to comment.