diff --git a/src/pages/Project/index.tsx b/src/pages/Project/index.tsx
index f17f96c..4ce5993 100644
--- a/src/pages/Project/index.tsx
+++ b/src/pages/Project/index.tsx
@@ -11,6 +11,7 @@ import {
Empty,
FullBuild,
MVP,
+ Payment,
Settings,
Specification,
} from '../../assets';
@@ -83,7 +84,7 @@ const Project = () => {
id: currentUser?.id!,
},
onCompleted({ getAllProjectsByClientId }) {
- setProject(getAllProjectsByClientId[0]);
+ history.push(`/project/${getAllProjectsByClientId[0].id}`);
},
fetchPolicy: 'network-only',
});
@@ -93,7 +94,7 @@ const Project = () => {
GetAllUsersQueryVariables
>(GET_ALL_PROJECTS, {
onCompleted({ getAllProjects }) {
- setProject(getAllProjects[0]);
+ history.push(`/project/${getAllProjects[0].id}`);
},
fetchPolicy: 'network-only',
});
@@ -417,6 +418,20 @@ const Project = () => {
}
/>
+ {role === 'client' && (
+
+ }
+ // disabled={project}
+ onClick={() =>
+ history.push(`/payments/${project.id}`)
+ }
+ />
+
+ )}
{role === 'client' && (