We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d04fb3 commit 46a801eCopy full SHA for 46a801e
1 file changed
x-pack/plugins/cases/public/components/create/index.tsx
@@ -25,12 +25,13 @@ const Container = styled.div`
25
`;
26
27
export interface CreateCaseProps {
28
+ afterCaseCreated?: (theCase: Case) => Promise<void>;
29
onCancel: () => void;
30
onSuccess: (theCase: Case) => Promise<void>;
31
}
32
-export const CreateCase = ({ onCancel, onSuccess }: CreateCaseProps) => (
33
- <FormContext onSuccess={onSuccess}>
+export const CreateCase = ({ afterCaseCreated, onCancel, onSuccess }: CreateCaseProps) => (
34
+ <FormContext afterCaseCreated={afterCaseCreated} onSuccess={onSuccess}>
35
<CreateCaseForm />
36
<Container>
37
<EuiFlexGroup alignItems="center" justifyContent="flexEnd" gutterSize="xs" responsive={false}>
0 commit comments