|
@@ -7,12 +7,14 @@ interface IWidget {
|
|
|
onSelect?: Function;
|
|
onSelect?: Function;
|
|
|
onDelete?: Function;
|
|
onDelete?: Function;
|
|
|
onReply?: Function;
|
|
onReply?: Function;
|
|
|
|
|
+ onClose?: Function;
|
|
|
}
|
|
}
|
|
|
const DiscussionListWidget = ({
|
|
const DiscussionListWidget = ({
|
|
|
data,
|
|
data,
|
|
|
onSelect,
|
|
onSelect,
|
|
|
onDelete,
|
|
onDelete,
|
|
|
onReply,
|
|
onReply,
|
|
|
|
|
+ onClose,
|
|
|
}: IWidget) => {
|
|
}: IWidget) => {
|
|
|
return (
|
|
return (
|
|
|
<List
|
|
<List
|
|
@@ -46,6 +48,11 @@ const DiscussionListWidget = ({
|
|
|
onReply(item);
|
|
onReply(item);
|
|
|
}
|
|
}
|
|
|
}}
|
|
}}
|
|
|
|
|
+ onClose={() => {
|
|
|
|
|
+ if (typeof onClose !== "undefined") {
|
|
|
|
|
+ onClose(item);
|
|
|
|
|
+ }
|
|
|
|
|
+ }}
|
|
|
/>
|
|
/>
|
|
|
</List.Item>
|
|
</List.Item>
|
|
|
)}
|
|
)}
|