From 705a1d68c8ebbb7ea9dc9d3bdedce4315fbe396a Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Sun, 19 Mar 2023 12:15:42 +0800 Subject: [PATCH] fix(console): apply inspire me data (#3497) --- .../src/onboarding/pages/SignInExperience/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/console/src/onboarding/pages/SignInExperience/index.tsx b/packages/console/src/onboarding/pages/SignInExperience/index.tsx index dd4ad0c84..a270dd1ff 100644 --- a/packages/console/src/onboarding/pages/SignInExperience/index.tsx +++ b/packages/console/src/onboarding/pages/SignInExperience/index.tsx @@ -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 = () => {
{t('cloud.sie.title')}
{ - 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(); }} />