Skip to content

Commit

Permalink
feat: drop trainee
Browse files Browse the repository at this point in the history
  • Loading branch information
Martha-Iradukunda committed Sep 28, 2023
1 parent e1fd5d2 commit b047556
Show file tree
Hide file tree
Showing 7 changed files with 287 additions and 108 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,4 @@
"*.{js,ts,tsx}": "eslint --fix",
"*.{js,ts,html,css,md}": "prettier --write \"./**/*.{js,ts,jsx,tsx,json}\""
}
}
}
10 changes: 10 additions & 0 deletions src/Mutations/manageStudentMutations.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// import { gql } from '@apollo/client';
import { gql, ApolloClient, InMemoryCache } from '@apollo/client';

import GET_PROFILE from './User';

export const GET_USERS_QUERY = gql`
query GetUsers($orgToken: String) {
Expand All @@ -11,6 +12,13 @@ export const GET_USERS_QUERY = gql`
}
`;

export const DROP_TRAINEE = gql`
mutation DropTrainee($traineeId: String!, $reason: String!, $date: DateTime!) {
dropTrainee(traineeId: $traineeId, reason: $reason, date: $date)
}
`;


export const GET_TRAINEES_QUERY = gql`
query GetTrainees($orgToken: String) {
getTrainees(orgToken: $orgToken) {
Expand Down Expand Up @@ -62,6 +70,8 @@ export const GET_TRAINEES_QUERY = gql`
}
}
`;


export const GET_COHORT_TRAINEES_QUERY = gql`
query GetCohortTrainees($cohort: String, $orgToken: String) {
getCohortTrainees(cohort: $cohort, orgToken: $orgToken) {
Expand Down
4 changes: 1 addition & 3 deletions src/containers/DashRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ const ViewTraineeRatings = React.lazy(
const TtlTraineeDashboard = React.lazy(
() => import('../pages/ttlTraineeDashboard'),
);
const ViewTraineeRatings = React.lazy(
() => import('../pages/ratings/ViewTraineeRatings'),
);

const TraineeRatingDashboard = React.lazy(
() => import('../pages/TraineeRatingDashboard'),
);
Expand Down
Loading

0 comments on commit b047556

Please sign in to comment.