mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
use base ui toast
This commit is contained in:
@ -3,12 +3,12 @@ import type { InitValidateStatusResponse } from '@/models/common'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import Button from '@/app/components/base/button'
|
||||
import { toast } from '@/app/components/base/ui/toast'
|
||||
import useDocumentTitle from '@/hooks/use-document-title'
|
||||
import { useRouter } from '@/next/navigation'
|
||||
import { fetchInitValidateStatus, initValidate } from '@/service/common'
|
||||
import { basePath } from '@/utils/var'
|
||||
import Loading from '../components/base/loading'
|
||||
import Toast from '../components/base/toast'
|
||||
|
||||
const InitPasswordPopup = () => {
|
||||
useDocumentTitle('')
|
||||
@ -32,11 +32,7 @@ const InitPasswordPopup = () => {
|
||||
}
|
||||
}
|
||||
catch (e: any) {
|
||||
Toast.notify({
|
||||
type: 'error',
|
||||
message: e.message,
|
||||
duration: 5000,
|
||||
})
|
||||
toast.error(e.message)
|
||||
setLoading(false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user