diff --git a/src/components/ProjectTiket/ProjectTiket.jsx b/src/components/ProjectTiket/ProjectTiket.jsx
index 9d1c5b48..497677ef 100644
--- a/src/components/ProjectTiket/ProjectTiket.jsx
+++ b/src/components/ProjectTiket/ProjectTiket.jsx
@@ -4,6 +4,8 @@ import { Link } from "react-router-dom";
import { deleteProject, modalToggle } from "@redux/projectsTrackerSlice";
+import { copyProjectLink } from "@utils/helper";
+
import { apiRequest } from "@api/request";
import { useNotification } from "@hooks/useNotification";
@@ -63,12 +65,6 @@ export const ProjectTiket = ({ project, index }) => {
});
}
- function copyProjectLink() {
- navigator.clipboard.writeText(
- `https://itguild.info/tracker/project/${project.id}`
- );
- }
-
function closeAcceptModal() {
setAcceptModalOpen(false);
}
@@ -120,7 +116,7 @@ export const ProjectTiket = ({ project, index }) => {
-
ссылка на проект
+
ссылка на проект
{
diff --git a/src/pages/Statistics/Statistics.jsx b/src/pages/Statistics/Statistics.jsx
index 71ef9770..8f9e67d8 100644
--- a/src/pages/Statistics/Statistics.jsx
+++ b/src/pages/Statistics/Statistics.jsx
@@ -4,6 +4,8 @@ import { Link } from "react-router-dom";
import { setToggleTab } from "@redux/projectsTrackerSlice";
+import { copyProjectLink } from "@utils/helper";
+
import { Navigation } from "@components/Navigation/Navigation";
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
@@ -103,7 +105,9 @@ const Statistics = () => {
Статистика проекта
-
ссылка на проект
+
+ ссылка на проект
+
diff --git a/src/pages/Statistics/statistics.scss b/src/pages/Statistics/statistics.scss
index 6bd4fb83..35c4b0ce 100644
--- a/src/pages/Statistics/statistics.scss
+++ b/src/pages/Statistics/statistics.scss
@@ -17,6 +17,16 @@
transform: rotate(-180deg);
margin-right: 22px;
}
+
+ a {
+ cursor: pointer;
+ transition: 0.4s;
+
+ &:hover {
+ text-decoration: underline !important;
+ transition: 0.4s;
+ }
+ }
}
&__menu {
@@ -33,6 +43,13 @@
span {
margin-left: 17px;
+ cursor: pointer;
+ transition: 0.4s;
+
+ &:hover {
+ text-decoration: underline;
+ transition: 0.4s;
+ }
}
}
}
diff --git a/src/utils/helper.js b/src/utils/helper.js
index d530919e..c4547a65 100644
--- a/src/utils/helper.js
+++ b/src/utils/helper.js
@@ -79,3 +79,9 @@ export function caseOfNum(number, type) {
: cases[number % 10 < 5 ? number % 10 : 5]
];
}
+
+export function copyProjectLink(projectId) {
+ navigator.clipboard.writeText(
+ `https://itguild.info/tracker/project/${projectId}`
+ );
+}