Added QR Tips and fixed fetchUser Email

This commit is contained in:
2024-08-14 13:36:39 +08:00
parent 187fd768e6
commit 170997097f
6 changed files with 96 additions and 18868 deletions

View File

@@ -240,4 +240,16 @@ export const deleteEmail = async (messageId: string) => {
return response;
};
// Function to delete all emails
// Function to fetch QR code tips
export const getQRTips = async () => {
try {
const response = await apiRequest({
method: 'get',
url: `${API_BASE_URL}${API_URL_TIPS_GET}`,
});
return response;
} catch (error) {
console.error('Error fetching QR tips:', error);
throw error;
}
};