Skip to content

Commit 5b9a820

Browse files
committed
Update Dialog.tsx
1 parent 1c162eb commit 5b9a820

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/dialogs/Dialog.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import type {
2626
DialogRevokeDelegationProps,
2727
DialogTenantKindEserviceTemplateProps,
2828
DialogTenantKindPurposeTemplateProps,
29+
DialogSelectAgreementConsumerProps,
2930
} from '@/types/dialog.types'
3031
import { DialogRejectAgreement } from './DialogRejectAgreement'
3132
import { ErrorBoundary } from '../shared/ErrorBoundary'
@@ -47,6 +48,7 @@ import { DialogRejectDelegatedVersionDraft } from './DialogRejectDelegatedVersio
4748
import { DialogCreateAgreementDraft } from './DialogCreateAgreementDraft/DialogCreateAgreementDraft'
4849
import { DialogTenantKindEserviceTemplate } from './DialogTenantKindEserviceTemplate'
4950
import { DialogTenantKindPurposeTemplate } from './DialogTenantKindPurposeTemplate'
51+
import { DialogSelectAgreementConsumer } from './DialogSelectAgreementConsumer/DialogSelectAgreementConsumer'
5052

5153
function match<T>(
5254
onBasic: (props: DialogBasicProps) => T,
@@ -69,7 +71,8 @@ function match<T>(
6971
onRevokeDelegation: (props: DialogRevokeDelegationProps) => T,
7072
onRejectDelegatedVersionDraft: (props: DialogRejectDelegatedVersionDraftProps) => T,
7173
onDialogTenantKindEserviceTemplate: (props: DialogTenantKindEserviceTemplateProps) => T,
72-
onDialogTenantKindPurposeTemplate: (props: DialogTenantKindPurposeTemplateProps) => T
74+
onDialogTenantKindPurposeTemplate: (props: DialogTenantKindPurposeTemplateProps) => T,
75+
onSelectAgreementConsumer: (props: DialogSelectAgreementConsumerProps) => T
7376
) {
7477
return (props: DialogProps) => {
7578
switch (props.type) {
@@ -115,6 +118,8 @@ function match<T>(
115118
return onDialogTenantKindEserviceTemplate(props)
116119
case 'tenantKindPurposeTemplate':
117120
return onDialogTenantKindPurposeTemplate(props)
121+
case 'selectAgreementConsumer':
122+
return onSelectAgreementConsumer(props)
118123
}
119124
}
120125
}
@@ -140,7 +145,8 @@ const _Dialog = match(
140145
(props) => <DialogRevokeDelegation {...props} />,
141146
(props) => <DialogRejectDelegatedVersionDraft {...props} />,
142147
(props) => <DialogTenantKindEserviceTemplate {...props} />,
143-
(props) => <DialogTenantKindPurposeTemplate {...props} />
148+
(props) => <DialogTenantKindPurposeTemplate {...props} />,
149+
(props) => <DialogSelectAgreementConsumer {...props} />
144150
)
145151

146152
export const Dialog: React.FC = () => {

0 commit comments

Comments
 (0)