mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 19:27:23 +08:00
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
23 lines
543 B
TypeScript
23 lines
543 B
TypeScript
'use client'
|
|
import { useSearchParams } from 'next/navigation'
|
|
import OneMoreStep from './one-more-step'
|
|
import NormalForm from './normal-form'
|
|
import { useEffect } from 'react'
|
|
import usePSInfo from '../components/billing/partner-stack/use-ps-info'
|
|
|
|
const SignIn = () => {
|
|
const searchParams = useSearchParams()
|
|
const step = searchParams.get('step')
|
|
const { saveOrUpdate } = usePSInfo()
|
|
|
|
useEffect(() => {
|
|
saveOrUpdate()
|
|
}, [])
|
|
|
|
if (step === 'next')
|
|
return <OneMoreStep />
|
|
return <NormalForm />
|
|
}
|
|
|
|
export default SignIn
|