File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -167,25 +167,20 @@ export function Webhook({ webhook }: Props) {
167
167
< div className = "mb-4" >
168
168
< div className = "mb-3" >
169
169
< ActionMenu >
170
- < ActionMenu . Button
171
- aria-label = "Select a webhook action type"
172
- className = "text-normal"
173
- >
170
+ < ActionMenu . Button className = "text-normal" >
174
171
{ t ( 'action_type' ) } : < span className = "text-bold" > { currentWebhookActionType } </ span >
175
172
</ ActionMenu . Button >
176
173
< ActionMenu . Overlay >
177
174
< ActionList selectionVariant = "single" >
178
- { webhook . actionTypes . map ( ( type , index ) => {
179
- return (
180
- < ActionList . Item
181
- selected = { index === selectedActionTypeIndex }
182
- key = { `${ webhook . name } -${ type } ` }
183
- onSelect = { ( ) => handleActionTypeChange ( type , index ) }
184
- >
185
- { type }
186
- </ ActionList . Item >
187
- )
188
- } ) }
175
+ { webhook . actionTypes . map ( ( type , index ) => (
176
+ < ActionList . Item
177
+ key = { `${ webhook . name } -${ type } ` }
178
+ selected = { index === selectedActionTypeIndex }
179
+ onSelect = { ( ) => handleActionTypeChange ( type , index ) }
180
+ >
181
+ { type }
182
+ </ ActionList . Item >
183
+ ) ) }
189
184
</ ActionList >
190
185
</ ActionMenu . Overlay >
191
186
</ ActionMenu >
You can’t perform that action at this time.
0 commit comments