mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
close on post done
This commit is contained in:
parent
901c8709a2
commit
1cfab21900
@ -3,8 +3,16 @@ import PostCreator from "components/PostCreator"
|
||||
|
||||
import "./index.less"
|
||||
|
||||
export default () => {
|
||||
export default (props) => {
|
||||
const onPostDone = () => {
|
||||
if (typeof props.close === "function") {
|
||||
props.close()
|
||||
}
|
||||
}
|
||||
|
||||
return <div className="_mobile_creator">
|
||||
<PostCreator />
|
||||
<PostCreator
|
||||
onPost={onPostDone}
|
||||
/>
|
||||
</div>
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user