auth + companies + invoice

This commit is contained in:
hamid zarghami
2025-05-18 12:41:42 +03:30
parent 8af0b9f9d9
commit 1b838e7a4d
85 changed files with 513 additions and 4635 deletions
@@ -10,6 +10,7 @@ import { TickCircle } from 'iconsax-react'
import { toast } from 'react-toastify'
import { useSingleUpload } from '../../service/hooks/useServiceData'
import { useCreateIndustry } from '../hooks/useCompanyData'
import { ErrorType } from '../../../helpers/types'
type Props = {
refetch: () => void
@@ -45,6 +46,9 @@ const CreateIndustry: FC<Props> = ({ refetch }) => {
onSuccess: () => {
toast.success('صنعت با موفقیت ثبت شد')
refetch()
},
onError: (error: ErrorType) => {
toast.error(error?.response?.data?.error.message[0])
}
})
}