|
|
|
@ -80,8 +80,10 @@ const TextGeneration: FC<IMainProps> = ({
|
|
|
|
const pathname = usePathname()
|
|
|
|
const pathname = usePathname()
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
const params = new URLSearchParams(searchParams)
|
|
|
|
const params = new URLSearchParams(searchParams)
|
|
|
|
|
|
|
|
if (params.has('mode')) {
|
|
|
|
params.delete('mode')
|
|
|
|
params.delete('mode')
|
|
|
|
router.replace(`${pathname}?${params.toString()}`)
|
|
|
|
router.replace(`${pathname}?${params.toString()}`)
|
|
|
|
|
|
|
|
}
|
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
}, [])
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
|
|
|