-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add updateProfile mock function and change phone data
- Loading branch information
1 parent
08cc656
commit 08701bb
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,15 @@ export const getProfile = async (): Promise<ProfileData> => { | |
name: "John Doe", | ||
email: "[email protected]", | ||
call_sign: "VAYPO", | ||
phone: "123-456-7890", | ||
phone: "1234567890", | ||
}; | ||
}; | ||
|
||
/** | ||
* @brief Updates the profile info of the current user | ||
* @param data The new profile data | ||
*/ | ||
export const updateProfile = async (data: ProfileData): Promise<void> => { | ||
// This is a mock implementation of an API call | ||
console.log(data); | ||
}; |