From 555e5fea73b72bdfd2d17a89c453bb8809dc9be3 Mon Sep 17 00:00:00 2001 From: Fernando Dodino Date: Thu, 2 Nov 2023 21:55:04 -0300 Subject: [PATCH] fixes in class --- .vscode/settings.json | 1 - src/pedido/component.jsx | 1 + src/pedido/{domain.jsx => domain.js} | 0 src/pedido/{domain.test.jsx => domain.test.js} | 0 src/pedido/{service.jsx => service.js} | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename src/pedido/{domain.jsx => domain.js} (100%) rename src/pedido/{domain.test.jsx => domain.test.js} (100%) rename src/pedido/{service.jsx => service.js} (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json index f98498a..1385f23 100755 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,4 @@ { "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "editor.formatOnSave": true, - "files.autoSave": "onFocusChange" } \ No newline at end of file diff --git a/src/pedido/component.jsx b/src/pedido/component.jsx index 16a68ad..018b46a 100644 --- a/src/pedido/component.jsx +++ b/src/pedido/component.jsx @@ -10,6 +10,7 @@ import { getPedidosPendientes } from './service' export const PedidoComponent = () => { const [pedidosPendientes, setPedidosPendientes] = useState([]) + const toast = useRef(null) useEffect(() => { diff --git a/src/pedido/domain.jsx b/src/pedido/domain.js similarity index 100% rename from src/pedido/domain.jsx rename to src/pedido/domain.js diff --git a/src/pedido/domain.test.jsx b/src/pedido/domain.test.js similarity index 100% rename from src/pedido/domain.test.jsx rename to src/pedido/domain.test.js diff --git a/src/pedido/service.jsx b/src/pedido/service.js similarity index 100% rename from src/pedido/service.jsx rename to src/pedido/service.js