delay toast after posting (#9208)
This commit is contained in:
@@ -564,6 +564,7 @@ export const ComposePost = ({
|
|||||||
onPostSuccess?.(postSuccessData)
|
onPostSuccess?.(postSuccessData)
|
||||||
}
|
}
|
||||||
onClose()
|
onClose()
|
||||||
|
setTimeout(() => {
|
||||||
Toast.show(
|
Toast.show(
|
||||||
<Toast.Outer>
|
<Toast.Outer>
|
||||||
<Toast.Icon />
|
<Toast.Icon />
|
||||||
@@ -589,6 +590,7 @@ export const ComposePost = ({
|
|||||||
</Toast.Outer>,
|
</Toast.Outer>,
|
||||||
{type: 'success'},
|
{type: 'success'},
|
||||||
)
|
)
|
||||||
|
}, 500)
|
||||||
}, [
|
}, [
|
||||||
_,
|
_,
|
||||||
agent,
|
agent,
|
||||||
|
|||||||
Reference in New Issue
Block a user