Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAPP-2000: Change Support Page API #2001

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/modules/support/Support.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Support: FC<SupportProps> = () => {
},
onError: (error: Error) => {
console.log('Error sending code', error);
setContactFormAlertMsg('Mayday! Mayday! something went wrong. Please retry...');
setContactFormAlertMsg('Error in sending mail, please try again later...');
setStatus(2);
},
}
Expand Down
1 change: 1 addition & 0 deletions src/queries/baseURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ export const getCustomDeliveryURL = () => {
};

export const analyticsBaseURL = 'https://backend.epns.io/apis/v1';
export const pushsupportBaseURL = 'https://tooling.push.org/apis';
3 changes: 2 additions & 1 deletion src/queries/services/support/sendSupportMessage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import axios from 'axios';
import { pushsupportBaseURL } from 'queries/baseURL';

import { sendSupportMessageModelCreator } from 'queries/models';

Expand All @@ -13,7 +14,7 @@ type sendSupportMessageType = {
export const sendSupportMessage = async (payload: sendSupportMessageType) => {
const response = await axios({
method: 'POST',
url: 'https://backend-kovan.epns.io/apis/mailing/sendMail',
url: `${pushsupportBaseURL}/mailing/send_mail`,
data: payload,
headers: {
'Content-Type': 'application/json',
Expand Down
Loading