toast issues
This commit is contained in:
@@ -142,7 +142,7 @@ function EditablePolygon({ section, onUpdate, onEdit, onDelete }) {
|
||||
click: () => {
|
||||
if (!isEditing) {
|
||||
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
|
||||
onClick={() => {
|
||||
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'}`}
|
||||
>
|
||||
@@ -250,7 +250,7 @@ const PropertyDetail = () => {
|
||||
}
|
||||
if (e.key === 'Escape' && isDrawing) {
|
||||
setIsDrawing(false);
|
||||
toast.info('Drawing cancelled');
|
||||
toast('Drawing cancelled');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user