mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: i18n toast friend code copied
This commit is contained in:
parent
f3276dd8fe
commit
b1e263814c
3 changed files with 6 additions and 4 deletions
|
@ -59,8 +59,8 @@ export const UserFriendModal = ({
|
|||
|
||||
const copyToClipboard = useCallback(() => {
|
||||
navigator.clipboard.writeText(userDetails!.id);
|
||||
showSuccessToast("Código de amigo copiado");
|
||||
}, [userDetails, showSuccessToast]);
|
||||
showSuccessToast(t("friend_code_copied"));
|
||||
}, [userDetails, showSuccessToast, t]);
|
||||
|
||||
return (
|
||||
<Modal visible={visible} title={t("friends")} onClose={onClose}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue