File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
packages/compass-components/src Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ import { default as Banner } from '@leafygreen-ui/banner';
99import { Checkbox } from '@leafygreen-ui/checkbox' ;
1010import { Card } from '@leafygreen-ui/card' ;
1111import { Code , Language , Panel } from '@leafygreen-ui/code' ;
12- import { ConfirmationModal } from '@leafygreen-ui/confirmation-modal' ;
12+ import {
13+ ConfirmationModal ,
14+ Variant as ConfirmationModalVariant ,
15+ } from '@leafygreen-ui/confirmation-modal' ;
1316export type { ConfirmationModalProps } from '@leafygreen-ui/confirmation-modal' ;
1417import { Icon as LeafyGreenIcon } from '@leafygreen-ui/icon' ;
1518import type { Size as LeafyGreenIconSize } from '@leafygreen-ui/icon' ;
@@ -132,6 +135,7 @@ export {
132135 Code ,
133136 Panel ,
134137 ConfirmationModal ,
138+ ConfirmationModalVariant ,
135139 Copyable ,
136140 ExpandedContent ,
137141 HeaderCell ,
Original file line number Diff line number Diff line change 11import { showConfirmation } from './use-confirmation' ;
2- import { Code } from '../components/leafygreen' ;
2+ import { Code , ConfirmationModalVariant } from '../components/leafygreen' ;
33import React from 'react' ;
4- import { ButtonVariant } from '..' ;
54
65export const showErrorDetails = function showErrorDetails ( {
76 details,
@@ -23,9 +22,6 @@ export const showErrorDetails = function showErrorDetails({
2322 ) ,
2423 hideCancelButton : true ,
2524 buttonText : closeAction . replace ( / \b \w / g, ( c ) => c . toUpperCase ( ) ) ,
26- confirmButtonProps : {
27- variant : ButtonVariant . Default ,
28- } ,
29- initialFocus : '[data-testid=lg-confirmation_modal-footer-confirm_button]' ,
25+ variant : ConfirmationModalVariant . Default ,
3026 } ) ;
3127} ;
You can’t perform that action at this time.
0 commit comments