Skip to content

Commit 46a801e

Browse files
committed
add prop for afterCaseCreated to make christos happiest boy in greece
1 parent 6d04fb3 commit 46a801e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • x-pack/plugins/cases/public/components/create

x-pack/plugins/cases/public/components/create/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ const Container = styled.div`
2525
`;
2626

2727
export interface CreateCaseProps {
28+
afterCaseCreated?: (theCase: Case) => Promise<void>;
2829
onCancel: () => void;
2930
onSuccess: (theCase: Case) => Promise<void>;
3031
}
3132

32-
export const CreateCase = ({ onCancel, onSuccess }: CreateCaseProps) => (
33-
<FormContext onSuccess={onSuccess}>
33+
export const CreateCase = ({ afterCaseCreated, onCancel, onSuccess }: CreateCaseProps) => (
34+
<FormContext afterCaseCreated={afterCaseCreated} onSuccess={onSuccess}>
3435
<CreateCaseForm />
3536
<Container>
3637
<EuiFlexGroup alignItems="center" justifyContent="flexEnd" gutterSize="xs" responsive={false}>

0 commit comments

Comments
 (0)