Browse Source

FIX | Notification about copying contact data (#17)

Reviewed-on: #17
Co-authored-by: Eduard Makarov <eduard.makarov.jetup@gmail.com>
Co-committed-by: Eduard Makarov <eduard.makarov.jetup@gmail.com>
pull/20/head
Eduard Makarov 8 months ago committed by Vitalik Yatsenko
parent
commit
6654b9488e
  1. 4
      src/shared/components/fields/contact-field.component.tsx

4
src/shared/components/fields/contact-field.component.tsx

@ -2,7 +2,7 @@ import React, { FC, CSSProperties } from "react"; @@ -2,7 +2,7 @@ import React, { FC, CSSProperties } from "react";
import "./styles.scss";
import { AsYouType } from "libphonenumber-js";
import copySvg from "@/assets/img/copy-icon-1.svg";
import { message } from "antd";
import { notification } from "@/shared/tools";
interface IProps {
label: string;
value: string | number;
@ -31,7 +31,7 @@ export const ContactField: FC<IProps> = ({ @@ -31,7 +31,7 @@ export const ContactField: FC<IProps> = ({
const onCopy = (event) => {
event.stopPropagation();
navigator.clipboard.writeText(value.toString());
message.info("Данні скопійовані!");
notification.showSuccess("Успішно", "Данні скопійовані!");
};
return (

Loading…
Cancel
Save