Skip to content

Commit 6229c50

Browse files
committed
Add DialogBody to remove Permission modal
1 parent 8e97aa0 commit 6229c50

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

frontend/src/components/pages/security/users/user-roles-card-new.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { Button } from '../../../redpanda-ui/components/button';
3030
import { Combobox } from '../../../redpanda-ui/components/combobox';
3131
import {
3232
Dialog,
33+
DialogBody,
3334
DialogContent,
3435
DialogDescription,
3536
DialogFooter,
@@ -189,10 +190,12 @@ export const UserRolesCardNew = ({ roles, userName, isLoading }: UserRolesCardNe
189190
<DialogHeader>
190191
<DialogTitle>Remove role</DialogTitle>
191192
</DialogHeader>
192-
<DialogDescription>
193-
Remove role <strong>{pendingRemoveRole}</strong> from user <strong>{userName}</strong>? The user will lose
194-
all permissions granted by this role.
195-
</DialogDescription>
193+
<DialogBody>
194+
<DialogDescription>
195+
Remove role <strong>{pendingRemoveRole}</strong> from user <strong>{userName}</strong>? The user will lose
196+
all permissions granted by this role.
197+
</DialogDescription>
198+
</DialogBody>
196199
<DialogFooter>
197200
<Button onClick={() => setPendingRemoveRole(null)} variant="outline">
198201
Cancel

0 commit comments

Comments
 (0)