File tree Expand file tree Collapse file tree 2 files changed +31
-20
lines changed
src/components/CippFormPages Expand file tree Collapse file tree 2 files changed +31
-20
lines changed Original file line number Diff line number Diff line change @@ -27,4 +27,8 @@ yarn-error.log*
27
27
28
28
# vscode debug logs
29
29
debug.log
30
- app.log
30
+ app.log
31
+
32
+ # Cursor IDE
33
+ .cursor /rules
34
+
Original file line number Diff line number Diff line change @@ -6,6 +6,21 @@ import { CippFormCondition } from "/src/components/CippComponents/CippFormCondit
6
6
import { CippFormDomainSelector } from "../CippComponents/CippFormDomainSelector" ;
7
7
import { CippFormUserSelector } from "../CippComponents/CippFormUserSelector" ;
8
8
9
+ const DynamicMembershipRules = ( { formControl } ) => (
10
+ < Grid item size = { { xs : 12 } } >
11
+ < CippFormComponent
12
+ type = "textField"
13
+ label = "Dynamic Group Parameters"
14
+ name = "membershipRules"
15
+ formControl = { formControl }
16
+ placeholder = "Enter dynamic group parameters syntax"
17
+ multiline
18
+ rows = { 4 }
19
+ fullWidth
20
+ />
21
+ </ Grid >
22
+ ) ;
23
+
9
24
const CippAddGroupForm = ( props ) => {
10
25
const { formControl } = props ;
11
26
@@ -101,25 +116,17 @@ const CippAddGroupForm = (props) => {
101
116
/>
102
117
</ Grid >
103
118
</ CippFormCondition >
104
- < CippFormCondition
105
- formControl = { formControl }
106
- field = "groupType"
107
- compareType = "contains"
108
- compareValue = "dynamic"
109
- >
110
- < Grid item size = { { xs : 12 } } >
111
- < CippFormComponent
112
- type = "textField"
113
- label = "Dynamic Group Parameters"
114
- name = "membershipRules"
115
- formControl = { formControl }
116
- placeholder = "Enter dynamic group parameters syntax"
117
- multiline
118
- rows = { 4 }
119
- fullWidth
120
- />
121
- </ Grid >
122
- </ CippFormCondition >
119
+ { [ "dynamic" , "dynamicDistribution" , "m365" ] . map ( ( groupType ) => (
120
+ < CippFormCondition
121
+ key = { groupType }
122
+ formControl = { formControl }
123
+ field = "groupType"
124
+ compareType = "is"
125
+ compareValue = { groupType }
126
+ >
127
+ < DynamicMembershipRules formControl = { formControl } />
128
+ </ CippFormCondition >
129
+ ) ) }
123
130
</ Grid >
124
131
) ;
125
132
} ;
You can’t perform that action at this time.
0 commit comments