refactor: route next/navigation through compat re-export (#33636)

This commit is contained in:
yyh
2026-03-18 12:57:03 +08:00
committed by GitHub
parent 04c0bf61fa
commit 296b7044af
269 changed files with 320 additions and 328 deletions

View File

@ -3,7 +3,6 @@ import type {
DSLImportResponse,
} from '@/models/app'
import type { AppIconType } from '@/types/app'
import { useRouter } from 'next/navigation'
import {
useCallback,
useRef,
@ -15,6 +14,7 @@ import { usePluginDependencies } from '@/app/components/workflow/plugin-dependen
import { NEED_REFRESH_APP_LIST_KEY } from '@/config'
import { useSelector } from '@/context/app-context'
import { DSLImportStatus } from '@/models/app'
import { useRouter } from '@/next/navigation'
import {
importDSL,
importDSLConfirm,

View File

@ -1,10 +1,10 @@
'use client'
import type { IConfirm } from '@/app/components/base/confirm'
import { useRouter, useSearchParams } from 'next/navigation'
import { useCallback, useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import Confirm from '@/app/components/base/confirm'
import { useRouter, useSearchParams } from '@/next/navigation'
import { useNotionBinding } from '@/service/use-common'
export type ConfirmType = Pick<IConfirm, 'type' | 'title' | 'content'>