File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/compass-components/src/hooks Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ export { ConfirmationModalVariant };
1818type ConfirmationModalProps = React . ComponentProps < typeof ConfirmationModal > ;
1919
2020type ConfirmationProperties = Partial <
21- Pick < ConfirmationModalProps , 'title' | 'variant' | 'requiredInputText' >
21+ Pick <
22+ ConfirmationModalProps ,
23+ 'title' | 'variant' | 'requiredInputText' | 'initialFocus'
24+ >
2225> & {
2326 buttonText ?: React . ReactNode ;
2427 confirmButtonProps ?: Omit < ButtonProps , 'onClick' > ;
@@ -196,6 +199,7 @@ const ConfirmationModalStateHandler: React.FunctionComponent = ({
196199 onClick : handleCancel ,
197200 } }
198201 requiredInputText = { confirmationProps . requiredInputText ?? undefined }
202+ initialFocus = { confirmationProps . initialFocus ?? null }
199203 >
200204 { confirmationProps . description }
201205 { confirmationProps . warning && (
You can’t perform that action at this time.
0 commit comments