diff --git a/client/src/App.css b/client/src/App.css index e69de29..b5c61c9 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/client/src/App.js b/client/src/App.js index bb7a3d1..c23c885 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -14,7 +14,7 @@ const App = () => { const [value, setValue] = useState(false); const getBooleanValue = async () => { try { - const res = await axios.get("https://glideride.onrender.com/getBooleanValue"); + const res = await axios.get(`${process.env.REACT_APP_SECRETROUTE}/getBooleanValue`); localStorage.setItem("ShowUi", res.data.booleanValue) setValue(res.data.booleanValue); } catch (error) { diff --git a/client/src/Steps/Summary.jsx b/client/src/Steps/Summary.jsx index 577af59..92bd689 100644 --- a/client/src/Steps/Summary.jsx +++ b/client/src/Steps/Summary.jsx @@ -88,8 +88,7 @@ const Summary = () => { order_id: data.id, handler: async (response) => { try { - const verifyUrl = - "https://glideride.onrender.com/api/checkout/verify"; + const verifyUrl = `${process.env.REACT_APP_SECRETROUTE}/api/checkout/verify`; const { data } = await axios.post(verifyUrl, response); if (data.success) { @@ -119,7 +118,7 @@ const Summary = () => { const handlePayment = async () => { try { const response = await axios.post( - "https://glideride.onrender.com/api/checkout/orders", + `${process.env.REACT_APP_SECRETROUTE}/api/checkout/orders`, { amount: numericValue } ); initPayment(response.data.order); diff --git a/client/src/componetnts/DisableUiButton.jsx b/client/src/componetnts/DisableUiButton.jsx index 6c4f62c..8e7f5f9 100644 --- a/client/src/componetnts/DisableUiButton.jsx +++ b/client/src/componetnts/DisableUiButton.jsx @@ -6,9 +6,12 @@ const DisableUiButton = () => { const handleDisable = async () => { console.log("ui disable"); try { - const res = await axios.post("https://glideride.onrender.com/updateUi", { - booleanValue: true, - }); + const res = await axios.post( + `${process.env.REACT_APP_SECRETROUTE}/updateUi`, + { + booleanValue: true, + } + ); message.success("Ui Disabled successfully"); console.log(res.data); } catch (error) { @@ -18,9 +21,12 @@ const DisableUiButton = () => { const handleActivate = async () => { console.log("Ui Activated"); try { - const res = await axios.post("https://glideride.onrender.com/updateUi", { - booleanValue: false, - }); + const res = await axios.post( + `${process.env.REACT_APP_SECRETROUTE}/updateUi`, + { + booleanValue: false, + } + ); message.success("Ui Activated successfully"); console.log(res.data); } catch (error) { diff --git a/client/src/pages/Booking.jsx b/client/src/pages/Booking.jsx index ee17975..35dd894 100644 --- a/client/src/pages/Booking.jsx +++ b/client/src/pages/Booking.jsx @@ -44,7 +44,7 @@ const Booking = ({ showUi }) => { }, []); const googleLogin = async () => { - window.open("https://glideride.onrender.com/auth/google", "_self"); + window.open(`${process.env.REACT_APP_SECRETROUTE}/auth/google`, "_self"); }; return ( @@ -95,7 +95,6 @@ const Booking = ({ showUi }) => { )} )} - Hiii ); };