sửa lỗi hiển thị polyline, polygon ở map, thêm component ScanQrCode
This commit is contained in:
@@ -90,13 +90,11 @@ const SosButton = () => {
|
||||
|
||||
const handleClickButton = async (isActive: boolean) => {
|
||||
if (isActive) {
|
||||
console.log("Active");
|
||||
const resp = await queryDeleteSos();
|
||||
if (resp.status === 200) {
|
||||
await getSosData();
|
||||
}
|
||||
} else {
|
||||
console.log("No Active");
|
||||
setSelectedSosMessage(11); // Mặc định chọn lý do ma: 11
|
||||
setShowConfirmSosDialog(true);
|
||||
}
|
||||
@@ -255,7 +253,6 @@ const SosButton = () => {
|
||||
onPress={() => {
|
||||
setSelectedSosMessage(item.ma);
|
||||
setShowDropdown(false);
|
||||
|
||||
// Clear custom message nếu chọn khác lý do
|
||||
if (item.ma !== 999) {
|
||||
setCustomMessage("");
|
||||
|
||||
Reference in New Issue
Block a user