Skip to content

Commit

Permalink
Merge pull request #19 from GlideRide-online/patch-01
Browse files Browse the repository at this point in the history
changed from whatsapp to call number
  • Loading branch information
Akshat2Jain authored Dec 23, 2023
2 parents 57b794c + 6969e2b commit 597af53
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 597af53

Please sign in to comment.