From 0e46659f1a1f677c4d8afef718c3e38a10cad7ab Mon Sep 17 00:00:00 2001 From: anibilag Date: Mon, 14 Jul 2025 22:59:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D1=81=D0=B8=D1=8F=200.4.4=20?= =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=83=D1=82=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=B8?= =?UTF-8?q?=D0=B7=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B9=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D0=B5=20=D0=B7=D0=BE?= =?UTF-8?q?=D0=BD=D1=8B.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/ZoneCard.tsx | 1 - src/components/ZoneForm.tsx | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f8d5421..b7956c8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lawn-mowing-scheduler", "private": true, - "version": "0.4.3", + "version": "0.4.4", "type": "module", "scripts": { "dev": "concurrently \"npm run server\" \"npm run client\"", diff --git a/src/components/ZoneCard.tsx b/src/components/ZoneCard.tsx index b0099ea..cb668c8 100644 --- a/src/components/ZoneCard.tsx +++ b/src/components/ZoneCard.tsx @@ -34,7 +34,6 @@ const ZoneCard: React.FC = ({ }; const getStatusText = (zone: Zone) => { - console.log(zone); if (zone.isNew) { return 'Еще не косилась'; } else if (zone.isOverdue) { diff --git a/src/components/ZoneForm.tsx b/src/components/ZoneForm.tsx index e885741..8c46d3f 100644 --- a/src/components/ZoneForm.tsx +++ b/src/components/ZoneForm.tsx @@ -9,7 +9,8 @@ interface ZoneFormProps { onCancel: () => void; } -const API_BASE = import.meta.env.VITE_API_URL; +const APP_MODE = import.meta.env.VITE_ENV; +const API_BASE = APP_MODE == "development" ? import.meta.env.VITE_API_URL : ""; const ZoneForm: React.FC = ({ zone, onSubmit, onCancel }) => { const [formData, setFormData] = useState({