email actions + sent list + action list + archive list + trash list
This commit is contained in:
@@ -11,7 +11,7 @@ import Button from '../Button'
|
||||
import Select from '../Select'
|
||||
import UploadButton from '../UploadButton'
|
||||
import { toast } from '../Toast'
|
||||
import { ErrorType } from '@/helpers/types'
|
||||
|
||||
|
||||
|
||||
const NewMessage: FC = () => {
|
||||
@@ -188,9 +188,6 @@ const NewMessage: FC = () => {
|
||||
handleClose()
|
||||
resetForm()
|
||||
},
|
||||
onError: (error: ErrorType) => {
|
||||
toast(error.response?.data?.error.message[0], 'error')
|
||||
},
|
||||
onSettled: () => {
|
||||
// Reset loading states
|
||||
setIsSending(false)
|
||||
|
||||
Reference in New Issue
Block a user