Skip to content

Commit

Permalink
update PR
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshataKatwal16 committed Jul 12, 2024
1 parent c8814be commit a63c114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
10 changes: 2 additions & 8 deletions src/pages/learners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { useTranslation } from "next-i18next";
import Pagination from "@mui/material/Pagination";
import { SelectChangeEvent } from "@mui/material/Select";
import PageSizeSelector from "@/components/PageSelector";
import IconButton from '@mui/material/IconButton';
import MoreVertIcon from '@mui/icons-material/MoreVert';

type UserDetails = {
userId: any;
Expand Down Expand Up @@ -50,7 +48,7 @@ const columns = [
{
key: "actions",
title: "Actions",
dataType: DataType.Object,
dataType: DataType.String,
},
];

Expand Down Expand Up @@ -143,11 +141,7 @@ const Learners: React.FC = () => {
return {
...user,
centers: cohortNames,
actions: (
<IconButton>
<MoreVertIcon />
</IconButton>
),

};
})
);
Expand Down
14 changes: 0 additions & 14 deletions src/services/userList.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { post } from "./RestClient";
import { get } from "./RestClient";

export interface userListParam {
limit: number;
Expand Down Expand Up @@ -30,17 +29,4 @@ export interface userListParam {
};


export const getCohortList = async (
userId: string | string[],

): Promise<any> => {
const apiUrl: string = `${process.env.NEXT_PUBLIC_BASE_URL}/cohort/mycohorts/${userId}`;
try {
const response = await get(apiUrl);
return response?.data;
} catch (error) {
console.error('error in fetching user details', error);
return error;
}
};

0 comments on commit a63c114

Please sign in to comment.