mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
refactor: route next/navigation through compat re-export (#33636)
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user