Версия 0.4.4 Исправление пути для изображений на форме зоны.

This commit is contained in:
anibilag 2025-07-14 22:59:44 +03:00
parent 086c0b0ae9
commit 0e46659f1a
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "lawn-mowing-scheduler", "name": "lawn-mowing-scheduler",
"private": true, "private": true,
"version": "0.4.3", "version": "0.4.4",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "concurrently \"npm run server\" \"npm run client\"", "dev": "concurrently \"npm run server\" \"npm run client\"",

View File

@ -34,7 +34,6 @@ const ZoneCard: React.FC<ZoneCardProps> = ({
}; };
const getStatusText = (zone: Zone) => { const getStatusText = (zone: Zone) => {
console.log(zone);
if (zone.isNew) { if (zone.isNew) {
return 'Еще не косилась'; return 'Еще не косилась';
} else if (zone.isOverdue) { } else if (zone.isOverdue) {

View File

@ -9,7 +9,8 @@ interface ZoneFormProps {
onCancel: () => void; 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<ZoneFormProps> = ({ zone, onSubmit, onCancel }) => { const ZoneForm: React.FC<ZoneFormProps> = ({ zone, onSubmit, onCancel }) => {
const [formData, setFormData] = useState<ZoneFormData>({ const [formData, setFormData] = useState<ZoneFormData>({