11import { FC , useContext , useMemo , useState } from 'react'
22import { bind , debounce , isEmpty } from 'lodash'
33import { toast } from 'react-toastify'
4+ import { useNavigate } from 'react-router-dom'
45import classNames from 'classnames'
5- import { useNavigate } from "react-router-dom"
66
77import { profileContext , ProfileContextData } from '~/libs/core'
88import { Button , IconSolid , InputDatePicker , InputMultiselectOption ,
99 InputRadio , InputSelect , InputSelectReact , InputText , InputTextarea } from '~/libs/ui'
1010import { InputSkillSelector } from '~/libs/shared'
11- import { EnvironmentConfig } from '~/config'
1211
1312import { getProjects } from '../../services/projects'
1413import { ProjectTypes , ProjectTypeValues } from '../../constants'
@@ -18,7 +17,7 @@ import styles from './styles.module.scss'
1817// eslint-disable-next-line
1918const CopilotRequestForm : FC < { } > = ( ) => {
2019 const { profile } : ProfileContextData = useContext ( profileContext )
21- const navigate = useNavigate ( ) ;
20+ const navigate = useNavigate ( )
2221
2322 const [ formValues , setFormValues ] = useState < any > ( { } )
2423 const [ isFormChanged , setIsFormChanged ] = useState ( false )
@@ -222,7 +221,7 @@ const CopilotRequestForm: FC<{}> = () => {
222221 setPaymentType ( '' )
223222 // Added a small timeout for the toast to be visible properly to the users
224223 setTimeout ( ( ) => {
225- navigate ( " /requests" )
224+ navigate ( ' /requests' )
226225 } , 1000 )
227226 } )
228227 . catch ( e => {
0 commit comments