Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 97x 79x | import { XIcon } from "lucide-react"; import { CardWithTopBorder } from "@/components/Cards"; import { convertStateAbbrToFullName, roleAccessStatus } from "@/utils"; import { RoleStatusProps } from "."; import { ApproverInfo } from "./ApproverInfo"; export const RoleStatusCardLegacy = ({ role, access, onClick, }: Omit<RoleStatusProps, "isNewUserRoleDisplay">) => { Iif (!access) return null; return ( <CardWithTopBorder> <div className="p-8 min-h-36"> <div className="flex justify-between"> <h3 className="text-xl font-bold">{convertStateAbbrToFullName(access.territory)}</h3> {role === "statesubmitter" && ( <button className="text-blue-700 disabled:text-gray-200" disabled={!onClick} data-testid="self-revoke" title="Self Revoke Access" onClick={onClick} > <XIcon size={30} /> </button> )} </div> <p className="italic">{roleAccessStatus[access.status]}</p> { <div className="block lg:mt-8 lg:mb-2"> <ApproverInfo access={access} /> </div> } </div> </CardWithTopBorder> ); }; |