toast issues

This commit is contained in:
Jake Kasper
2025-08-21 17:56:41 -04:00
parent 2c54a60d84
commit 8b9a47c589

View File

@@ -142,7 +142,7 @@ function EditablePolygon({ section, onUpdate, onEdit, onDelete }) {
click: () => { click: () => {
if (!isEditing) { if (!isEditing) {
setIsEditing(true); setIsEditing(true);
toast.info('Edit mode: Drag points to move, right-click to add/remove points'); toast('Edit mode enabled: Drag points to move, right-click to remove points');
} }
} }
}} }}
@@ -155,7 +155,7 @@ function EditablePolygon({ section, onUpdate, onEdit, onDelete }) {
<button <button
onClick={() => { onClick={() => {
setIsEditing(!isEditing); setIsEditing(!isEditing);
toast.info(isEditing ? 'Edit mode disabled' : 'Edit mode enabled'); toast(isEditing ? 'Edit mode disabled' : 'Edit mode enabled');
}} }}
className={`text-sm ${isEditing ? 'text-green-600' : 'text-blue-600'}`} className={`text-sm ${isEditing ? 'text-green-600' : 'text-blue-600'}`}
> >
@@ -250,7 +250,7 @@ const PropertyDetail = () => {
} }
if (e.key === 'Escape' && isDrawing) { if (e.key === 'Escape' && isDrawing) {
setIsDrawing(false); setIsDrawing(false);
toast.info('Drawing cancelled'); toast('Drawing cancelled');
} }
}; };