close on post done

This commit is contained in:
SrGooglo 2023-06-24 12:17:09 +00:00
parent 901c8709a2
commit 1cfab21900

View File

@ -3,8 +3,16 @@ import PostCreator from "components/PostCreator"
import "./index.less" import "./index.less"
export default () => { export default (props) => {
const onPostDone = () => {
if (typeof props.close === "function") {
props.close()
}
}
return <div className="_mobile_creator"> return <div className="_mobile_creator">
<PostCreator /> <PostCreator
onPost={onPostDone}
/>
</div> </div>
} }