Skip to content

Commit

Permalink
Update NotificationList.tsx, User.tsx and Settings.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Dec 31, 2024
1 parent 66d2a4d commit 638803f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions backend/src/components/NotificationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const NotificationList = ({ user }: NotificationListProps) => {
</IconButton>
</Tooltip>
)}
<Tooltip title={strings.DELETE_ALL}>
{/* <Tooltip title={strings.DELETE_ALL}>
<IconButton
onClick={() => {
setSelectedRows(checkedRows)
Expand All @@ -198,7 +198,7 @@ const NotificationList = ({ user }: NotificationListProps) => {
>
<DeleteIcon />
</IconButton>
</Tooltip>
</Tooltip> */}
</div>
)}
</div>
Expand Down Expand Up @@ -318,7 +318,7 @@ const NotificationList = ({ user }: NotificationListProps) => {
</IconButton>
</Tooltip>
)}
<Tooltip title={commonStrings.DELETE}>
{/* <Tooltip title={commonStrings.DELETE}>
<IconButton
onClick={() => {
setSelectedRows([row])
Expand All @@ -327,7 +327,7 @@ const NotificationList = ({ user }: NotificationListProps) => {
>
<DeleteIcon />
</IconButton>
</Tooltip>
</Tooltip> */}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions backend/src/pages/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ const User = () => {
</IconButton>
</Tooltip>
)}
{edit && (
{/* {edit && (
<Tooltip title={commonStrings.DELETE}>
<IconButton data-id={user._id} onClick={handleDelete}>
<DeleteIcon />
</IconButton>
</Tooltip>
)}
)} */}
</div>
</div>
<div className="col-2">
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/components/NotificationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const NotificationList = ({ user }: NotificationListProps) => {
</IconButton>
</Tooltip>
)}
<Tooltip title={strings.DELETE_ALL}>
{/* <Tooltip title={strings.DELETE_ALL}>
<IconButton
onClick={() => {
setSelectedRows(checkedRows)
Expand All @@ -201,7 +201,7 @@ const NotificationList = ({ user }: NotificationListProps) => {
>
<DeleteIcon />
</IconButton>
</Tooltip>
</Tooltip> */}
</div>
)}
</div>
Expand Down Expand Up @@ -321,7 +321,7 @@ const NotificationList = ({ user }: NotificationListProps) => {
</IconButton>
</Tooltip>
)}
<Tooltip title={commonStrings.DELETE}>
{/* <Tooltip title={commonStrings.DELETE}>
<IconButton
onClick={() => {
setSelectedRows([row])
Expand All @@ -330,7 +330,7 @@ const NotificationList = ({ user }: NotificationListProps) => {
>
<DeleteIcon />
</IconButton>
</Tooltip>
</Tooltip> */}
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ const Settings = () => {
loggedUser={user}
user={user}
size="large"
readonly={false}
// readonly={false}
readonly
onBeforeUpload={onBeforeUpload}
onChange={onAvatarChange}
color="disabled"
Expand Down

0 comments on commit 638803f

Please sign in to comment.