Версия 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",
"private": true,
"version": "0.4.3",
"version": "0.4.4",
"type": "module",
"scripts": {
"dev": "concurrently \"npm run server\" \"npm run client\"",

View File

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

View File

@ -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<ZoneFormProps> = ({ zone, onSubmit, onCancel }) => {
const [formData, setFormData] = useState<ZoneFormData>({