diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..e3305190 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,28 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Next.js: debug server-side", + "type": "node-terminal", + "request": "launch", + "command": "npm run dev" + }, + { + "name": "Next.js: debug client-side", + "type": "chrome", + "request": "launch", + "url": "http://localhost:3000" + }, + { + "name": "Next.js: debug full stack", + "type": "node-terminal", + "request": "launch", + "command": "npm run dev", + "serverReadyAction": { + "pattern": "- Local:.+(https?://.+)", + "uriFormat": "%s", + "action": "debugWithChrome" + } + } + ] + } \ No newline at end of file diff --git a/src/dashboards/Admin.tsx b/src/dashboards/Admin.tsx index 097bb968..49b9c654 100644 --- a/src/dashboards/Admin.tsx +++ b/src/dashboards/Admin.tsx @@ -13,9 +13,8 @@ import { BsGlobeCentralSouthAsia, BsPerson, BsPersonFill, - BsPersonFillGear, - BsPersonGear, - BsPersonLinesFill, + BsPencilSquare, + BsBank, } from "react-icons/bs"; import UserCard from "@/components/UserCard"; import useGroups from "@/hooks/useGroups"; @@ -43,6 +42,8 @@ export default function AdminDashboard({user}: Props) { setShowModal(!!selectedUser && page === ""); }, [selectedUser, page]); + const inactiveCountryManagerFilter = (x: User) => x.type === "agent" && (x.status === "disabled" || moment().isAfter(x.subscriptionExpirationDate)); + const UserDisplay = (displayUser: User) => (