diff --git a/public/6300830.jpg b/public/6300830.jpg new file mode 100644 index 00000000..9ef7cebd Binary files /dev/null and b/public/6300830.jpg differ diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 8f05c41a..14b00d04 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -12,6 +12,8 @@ "REASON_FOR_DELETION": "Reason for Deletion", "INCORRECT_DATA_ENTRY": "Incorrect Data Entry", "DUPLICATED_USER": "Duplicate User", + + "ALL":"All", "NO_GO_BACK": "No, go back", "YES": "Yes", "SURE_REASSIGN_CENTER": "Are you sure you want to re-assign Center to this user?", diff --git a/public/login.jpg b/public/login.jpg new file mode 100644 index 00000000..e8bc9598 Binary files /dev/null and b/public/login.jpg differ diff --git a/src/components/ActionIcon.tsx b/src/components/ActionIcon.tsx new file mode 100644 index 00000000..60db6173 --- /dev/null +++ b/src/components/ActionIcon.tsx @@ -0,0 +1,64 @@ +// components/ActionCell.tsx + +import React from "react"; +import { + Box, + Divider, + IconButton, + ListItemIcon, + ListItemText, + Menu, + MenuItem, +} from "@mui/material"; +// import EditIcon from '@mui/icons-material/ModeEditOutlineOutlined'; +// import DeleteIcon from '@mui/icons-material/DeleteOutlined'; +import MoreVertIcon from "@mui/icons-material/MoreVert"; +import { useTranslation } from "next-i18next"; +import EditIcon from "@mui/icons-material/Edit"; +import DeleteIcon from "@mui/icons-material/Delete"; + +interface ActionCellProps { + onEdit: (rowData: any) => void; + onDelete: (rowData: any) => void; + rowData: any; +} + +const ActionIcon: React.FC = ({ + rowData, + onEdit, + onDelete, +}) => { + return ( + + { + onDelete(rowData); + }} + style={{ cursor: "pointer" }} + > + + + { + onEdit(rowData); + }} + style={{ + cursor: "pointer", + opacity: 0.5, // Reduced opacity to make it appear disabled + pointerEvents: "auto", // Enable pointer events to allow click + }} + > + + + + + ); +}; + +export default ActionIcon; diff --git a/src/components/FormControl.tsx b/src/components/FormControl.tsx index 1ac93075..f60d6c0d 100644 --- a/src/components/FormControl.tsx +++ b/src/components/FormControl.tsx @@ -5,7 +5,7 @@ import MenuItem from '@mui/material/MenuItem'; import FormControl from '@mui/material/FormControl'; import ListItemText from '@mui/material/ListItemText'; import Select, { SelectChangeEvent } from '@mui/material/Select'; -import Checkbox from '@mui/material/Checkbox'; +import { useTranslation } from "next-i18next"; const ITEM_HEIGHT = 48; const ITEM_PADDING_TOP = 8; @@ -28,6 +28,7 @@ interface MultipleSelectCheckmarksProps { } const MultipleSelectCheckmarks: React.FC = ({ names, codes, tagName, selectedCategories, onCategoryChange, disabled = false }) => { + const { t } = useTranslation(); const handleChange = (event: SelectChangeEvent) => { const { target: { value }, @@ -39,7 +40,7 @@ const MultipleSelectCheckmarks: React.FC = ({ nam return (
- + {tagName} - {config?.languages.map((lang) => ( - - {lang.label} - - ))} - - - +
- + {loading && ( + + )} + App Logo - - + + + + + + + {showPassword ? : } + + + ), + }} + label={t("LOGIN_PAGE.PASSWORD")} + placeholder={t("LOGIN_PAGE.PASSWORD_PLACEHOLDER")} + value={password} + onChange={handlePasswordChange} + error={passwordError} + margin="normal" + inputRef={passwordRef} + /> + + setRememberMe(e.target.checked)} checked={rememberMe} /> - { setRememberMe(!rememberMe); logEvent({ action: "remember-me-button-clicked", category: "Login Page", - label: `Remember Me ${rememberMe ? "Checked" : "Unchecked"}`, + label: `Remember Me ${ + rememberMe ? "Checked" : "Unchecked" + }`, }); }} + sx={{ + cursor: "pointer", + marginTop:"15px", + color: theme.palette.warning[300], + }} > {t("LOGIN_PAGE.REMEMBER_ME")} - + - + - +
- - + + ); };