summaryrefslogtreecommitdiffstats
path: root/src/services/graphql/contact.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-15 16:36:58 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-15 16:36:58 +0200
commit235fe67d770f83131c9ec10b99012319440db690 (patch)
tree3b96e2c8a5877fe15a9cfa6bff46130fa7a04a65 /src/services/graphql/contact.ts
parentfe2252ced2bb895e26179640553b5a6c02957d54 (diff)
chore: add Search page
Diffstat (limited to 'src/services/graphql/contact.ts')
-rw-r--r--src/services/graphql/contact.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/graphql/contact.ts b/src/services/graphql/contact.ts
index fca718f..00c6ca2 100644
--- a/src/services/graphql/contact.ts
+++ b/src/services/graphql/contact.ts
@@ -1,4 +1,4 @@
-import { fetchAPI, getAPIUrl, sendMailVars } from './api';
+import { fetchAPI, getAPIUrl, SendMailVars } from './api';
import { sendMailMutation } from './contact.mutation';
export type SentEmail = {
@@ -15,7 +15,7 @@ export type SentEmail = {
* @param {sendMailVars} data - The mail data.
* @returns {Promise<SentEmail>} The mutation response.
*/
-export const sendMail = async (data: sendMailVars): Promise<SentEmail> => {
+export const sendMail = async (data: SendMailVars): Promise<SentEmail> => {
const response = await fetchAPI<SentEmail, typeof sendMailMutation>({
api: getAPIUrl(),
query: sendMailMutation,