File tree Expand file tree Collapse file tree
src/features/resume-form/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { toast } from 'react-toastify'
99import { CountrySelect } from 'entities/country'
1010import { Resume , ResumeDTO } from 'entities/resume'
1111import { ImageUploadInput } from 'features/upload-image'
12- import { isServerError , useServerErrorHandler } from 'shared/api'
12+ import { isServerError , ServerError , useServerErrorHandler } from 'shared/api'
1313import { colors } from 'shared/config'
1414import { fieldCss , Form } from 'shared/form'
1515import { isNilOrEmptyString } from 'shared/lib'
@@ -24,13 +24,7 @@ import * as rules from '../model/rules'
2424
2525type Props = {
2626 resume ?: Resume
27- submit : ( data : ResumeDTO ) => Promise <
28- | {
29- type : string
30- message : string
31- }
32- | undefined
33- >
27+ submit : ( data : ResumeDTO ) => Promise < ServerError | undefined >
3428}
3529
3630export const ResumeForm = ( { resume, submit } : Props ) => {
You can’t perform that action at this time.
0 commit comments