1
1
import { FC , useContext , useMemo , useState } from 'react'
2
2
import { bind , debounce , isEmpty } from 'lodash'
3
3
import { toast } from 'react-toastify'
4
+ import { useNavigate } from 'react-router-dom'
4
5
import classNames from 'classnames'
5
- import { useNavigate } from "react-router-dom"
6
6
7
7
import { profileContext , ProfileContextData } from '~/libs/core'
8
8
import { Button , IconSolid , InputDatePicker , InputMultiselectOption ,
9
9
InputRadio , InputSelect , InputSelectReact , InputText , InputTextarea } from '~/libs/ui'
10
10
import { InputSkillSelector } from '~/libs/shared'
11
- import { EnvironmentConfig } from '~/config'
12
11
13
12
import { getProjects } from '../../services/projects'
14
13
import { ProjectTypes , ProjectTypeValues } from '../../constants'
@@ -18,7 +17,7 @@ import styles from './styles.module.scss'
18
17
// eslint-disable-next-line
19
18
const CopilotRequestForm : FC < { } > = ( ) => {
20
19
const { profile } : ProfileContextData = useContext ( profileContext )
21
- const navigate = useNavigate ( ) ;
20
+ const navigate = useNavigate ( )
22
21
23
22
const [ formValues , setFormValues ] = useState < any > ( { } )
24
23
const [ isFormChanged , setIsFormChanged ] = useState ( false )
@@ -222,7 +221,7 @@ const CopilotRequestForm: FC<{}> = () => {
222
221
setPaymentType ( '' )
223
222
// Added a small timeout for the toast to be visible properly to the users
224
223
setTimeout ( ( ) => {
225
- navigate ( " /requests" )
224
+ navigate ( ' /requests' )
226
225
} , 1000 )
227
226
} )
228
227
. catch ( e => {
0 commit comments