feat: notice of the expire of education verify (#24210)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
870e3daa95
commit
ddf05ca059
20 changed files with 400 additions and 11 deletions
|
|
@ -13,12 +13,12 @@ import { useProviderContext } from '@/context/provider-context'
|
|||
|
||||
export default function EducationApply() {
|
||||
const router = useRouter()
|
||||
const { enableEducationPlan, isEducationAccount } = useProviderContext()
|
||||
const { enableEducationPlan } = useProviderContext()
|
||||
const searchParams = useSearchParams()
|
||||
const token = searchParams.get('token')
|
||||
const showEducationApplyPage = useMemo(() => {
|
||||
return enableEducationPlan && !isEducationAccount && token
|
||||
}, [enableEducationPlan, isEducationAccount, token])
|
||||
return enableEducationPlan && token
|
||||
}, [enableEducationPlan, token])
|
||||
|
||||
useEffect(() => {
|
||||
if (!showEducationApplyPage)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue