add group chat
This commit is contained in:
@@ -4,7 +4,6 @@ import { fetchGroupJoinLink } from '../../../redux/slices/groups';
|
||||
import { Modal } from '../../../components/modal/Modal';
|
||||
import { PrimaryButton } from '../../../components/button/PrimaryButton';
|
||||
import { SecondaryButton } from '../../../components/button/SecondaryButton';
|
||||
import { Input } from '../../../components/input/Input';
|
||||
import { toastSuccess } from '../../../lib/toastNotification';
|
||||
|
||||
interface ModalInviteProps {
|
||||
@@ -54,9 +53,7 @@ const ModalInvite: FC<ModalInviteProps> = ({
|
||||
await navigator.clipboard.writeText(inviteLink);
|
||||
toastSuccess('Приглашение скопировано в буфер обмена!');
|
||||
setActive(false);
|
||||
} catch (err) {
|
||||
console.error('Не удалось скопировать ссылку:', err);
|
||||
}
|
||||
} catch (err) {}
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user