Skip to content

Commit 942740a

Browse files
authored
Merge pull request #1270 from layer5io/chore/remove-notify-checkbox-v2
Remove notify checkbox from UserSearchField
2 parents 7a54d9b + ee80ab9 commit 942740a

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sistent/sistent",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Reusable React Components and SVG Icons library",
55
"repository": {
66
"type": "git",

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)