-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from AkshataKatwal16/admin
Issue feat : fix UI changes
- Loading branch information
Showing
11 changed files
with
249 additions
and
216 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<ActionCellProps> = ({ | ||
rowData, | ||
onEdit, | ||
onDelete, | ||
}) => { | ||
return ( | ||
<Box | ||
sx={{ | ||
display: "flex", | ||
flexDirection: "row", | ||
gap: "20px", | ||
}} | ||
> | ||
<Box | ||
onClick={() => { | ||
onDelete(rowData); | ||
}} | ||
style={{ cursor: "pointer" }} | ||
> | ||
<DeleteIcon style={{ color: "rgba(0, 0, 0, 0.5)" }} /> | ||
</Box> | ||
<Box | ||
onClick={() => { | ||
onEdit(rowData); | ||
}} | ||
style={{ | ||
cursor: "pointer", | ||
opacity: 0.5, // Reduced opacity to make it appear disabled | ||
pointerEvents: "auto", // Enable pointer events to allow click | ||
}} | ||
> | ||
<EditIcon style={{ color: "rgba(0, 0, 0, 0.5)" }} /> | ||
</Box> | ||
|
||
</Box> | ||
); | ||
}; | ||
|
||
export default ActionIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,4 +66,4 @@ const Menuitems = [ | |
}, | ||
]; | ||
|
||
export default Menuitems; | ||
export default Menuitems; |
Oops, something went wrong.