0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

fix(console): apply inspire me data (#3497)

This commit is contained in:
Xiao Yijun 2023-03-19 12:15:42 +08:00 committed by GitHub
parent 5a2f3c3461
commit 705a1d68c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,8 +20,8 @@ import useUserAssetsService from '@/hooks/use-user-assets-service';
import ActionBar from '@/onboarding/components/ActionBar';
import { CardSelector, MultiCardSelector } from '@/onboarding/components/CardSelector';
import * as pageLayout from '@/onboarding/scss/layout.module.scss';
import { Authentication, OnboardingPage } from '@/onboarding/types';
import type { OnboardingSieConfig } from '@/onboarding/types';
import { Authentication, OnboardingPage } from '@/onboarding/types';
import { getOnboardingPage } from '@/onboarding/utils';
import { buildUrl } from '@/utils/url';
import { uriValidator } from '@/utils/validator';
@ -103,7 +103,10 @@ const SignInExperience = () => {
<div className={styles.title}>{t('cloud.sie.title')}</div>
<InspireMe
onInspired={(template) => {
reset(template);
for (const [key, value] of Object.entries(template)) {
// eslint-disable-next-line no-restricted-syntax
setValue(key as keyof OnboardingSieConfig, value, { shouldDirty: true });
}
updateAuthenticationConfig();
}}
/>