Skip to content

Commit

Permalink
changed from whatsapp to call number
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat2Jain committed Dec 23, 2023
1 parent 622759a commit 6969e2b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions client/src/pages/NoRIdeAvailable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ const NoRIdeAvailable = () => {
};
const sendMessage = () => {
// let number = whatsappNumber.replace(/[^\w\s]/gi, "").replace(/ /g, "");
let url = `https://web.whatsapp.com/send?phone=${process.env.REACT_APP_NUMBER}`;
url += `&text=${encodeURI(
"Hi Glideride! Please add me to waiting list and Notify me as soon as ride is possible"
)}&app_absent=0`;
window.open(url);
const number = process.env.REACT_APP_NUMBER;
window.location.href = `tel:${number}`;
};
return (
<form onSubmit={addToWaitingList}>
Expand All @@ -32,11 +29,11 @@ const NoRIdeAvailable = () => {
htmlFor="whatsappNumber"
className="block text-gray-600 text-sm"
>
Click Here to add You to our waiting List
Call Us to add you to our waiting list
</label>
</div>
<button className="bg-yellow-500 text-black font-sans px-4 py-2 rounded-md">
Add Me!
Call 7310691665
</button>
</div>
</form>
Expand Down

0 comments on commit 6969e2b

Please sign in to comment.