diff --git a/React/package.json b/React/package.json index 0d75192..685f7a2 100644 --- a/React/package.json +++ b/React/package.json @@ -13,7 +13,8 @@ "mongoose": "^8.13.1", "next": "15.2.4", "react": "^19.1.0", - "react-dom": "^19.1.0" + "react-dom": "^19.1.0", + "twilio": "^5.5.1" }, "devDependencies": { "@skeletonlabs/skeleton": "^3.1.1", diff --git a/React/src/app/call/page.tsx b/React/src/app/call/page.tsx index b0cbb5b..efea5b4 100644 --- a/React/src/app/call/page.tsx +++ b/React/src/app/call/page.tsx @@ -78,14 +78,16 @@ function CallPage() { "Content-Type": "application/json", }, body: JSON.stringify({ - message: `John Smith needs help.`, + message: `John Smith needs help. His GPS location is: https://www.google.com/maps/search/?api=1&query=38.03163938795633,-78.51085551716174`, }), }); if (!response.ok) { console.error("Error sending message:", response.statusText); return; - } + } else { + alert("Emergency message sent successfully."); + } } return (