mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add comment
This commit is contained in:
parent
e55dc20c7d
commit
004ccd0db5
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@ export const UserFriendModalAddFriend = ({
|
||||||
setIsAddingFriend(true);
|
setIsAddingFriend(true);
|
||||||
sendFriendRequest(friendCode)
|
sendFriendRequest(friendCode)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
// TODO: add validation for this input?
|
||||||
setFriendCode("");
|
setFriendCode("");
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
@ -51,6 +52,7 @@ export const UserFriendModalAddFriend = ({
|
||||||
|
|
||||||
const handleClickSeeProfile = () => {
|
const handleClickSeeProfile = () => {
|
||||||
resetAndClose();
|
resetAndClose();
|
||||||
|
// TODO: add validation for this input?
|
||||||
navigate(`/user/${friendCode}`);
|
navigate(`/user/${friendCode}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue