Skip to content

Commit e27bc05

Browse files
shebz2023GSinseswa721
authored andcommitted
fx-rating-error (#492)
this commit refines the functions of validating this commit utilizes zod library for validating ttl rating trainees (#494) Fetch invitation statistics (#463)
1 parent f0d1c91 commit e27bc05

File tree

3 files changed

+419
-173
lines changed

3 files changed

+419
-173
lines changed

src/Mutations/invitationMutation.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,27 @@ export const DELETE_INVITATION = gql`
3636
}
3737
}
3838
`;
39+
40+
export const UPDATE_INVITATION = gql`
41+
mutation UpdateInvitation(
42+
$invitationId: ID!
43+
$orgToken: String!
44+
$newEmail: String
45+
$newRole: String
46+
) {
47+
updateInvitation(
48+
invitationId: $invitationId
49+
orgToken: $orgToken
50+
newEmail: $newEmail
51+
newRole: $newRole
52+
) {
53+
id
54+
invitees {
55+
email
56+
role
57+
}
58+
inviterId
59+
orgToken
60+
}
61+
}
62+
`;

src/components/InvitationTable.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,8 @@ function DataTableStats({ data, columns, error, loading }: TableData) {
6262
};
6363

6464
return (
65-
<div
66-
className={``}
67-
>
68-
<div className="flex items-center justify-between pb-6 ">
69-
</div>
65+
<div className="">
66+
<div className="flex items-center justify-between pb-6 " />
7067
<div style={{ overflowX: 'auto' }}>
7168
<table className="min-w-full leading-normal" {...getTableProps()}>
7269
<thead>
@@ -178,5 +175,4 @@ function DataTableStats({ data, columns, error, loading }: TableData) {
178175
);
179176
}
180177

181-
182178
export default DataTableStats;

0 commit comments

Comments
 (0)