Skip to content

Commit 1b72aa8

Browse files
committed
remove notify checkbox from user search field
1 parent 7a54d9b commit 1b72aa8

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/custom/UserSearchField/UserSearchFieldInput.tsx

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ interface UserSearchFieldProps {
3333
setUsersData: React.Dispatch<React.SetStateAction<User[]>>;
3434
label?: string;
3535
setDisableSave?: (disable: boolean) => void;
36+
// Deprecated: remove notify controls from embedded contexts (e.g., audit filters)
3637
handleNotifyPref?: () => void;
3738
notifyUpdate?: boolean;
3839
isCreate?: boolean;
@@ -229,23 +230,7 @@ const UserSearchField: React.FC<UserSearchFieldProps> = ({
229230
</li>
230231
)}
231232
/>
232-
{!isCreate && (
233-
<FormGroup row={true}>
234-
<div style={{ display: 'flex', flexWrap: 'nowrap' }}>
235-
<FormControlLabel
236-
control={
237-
<Checkbox
238-
checked={notifyUpdate}
239-
onChange={handleNotifyPref}
240-
name="notify"
241-
color="primary"
242-
/>
243-
}
244-
label={`Notify ${searchType} of membership change`}
245-
/>
246-
</div>
247-
</FormGroup>
248-
)}
233+
{/* Notify checkbox removed */}
249234
<Box
250235
sx={{
251236
display: 'flex',

0 commit comments

Comments
 (0)