{isCompact && (
@@ -32,6 +60,12 @@ const GuideHeader = ({ appName, selectedSdk, isCompact = false, onClose }: Props
subtitle="applications.guide.header_description"
/>
+
+
+
+
+
+
@@ -54,9 +88,7 @@ const GuideHeader = ({ appName, selectedSdk, isCompact = false, onClose }: Props
className={styles.getSampleButton}
type="outline"
title="admin_console.applications.guide.get_sample_file"
- onClick={() => {
- onClickFetchSampleProject(selectedSdk);
- }}
+ onClick={onClickGetSample}
/>
>
)}
diff --git a/packages/phrases/src/locales/en.ts b/packages/phrases/src/locales/en.ts
index bf0d19161..5223c3255 100644
--- a/packages/phrases/src/locales/en.ts
+++ b/packages/phrases/src/locales/en.ts
@@ -108,7 +108,7 @@ const translation = {
guide: {
get_sample_file: 'Get the sample project',
header_description:
- 'Follow a step by step guide to integrate your application or get a sample configured with your account settings',
+ 'Follow a step by step guide to integrate your application or click the right button to get the sample project',
title: 'The application has been successfully created',
subtitle:
'Now follow the steps below to finish your app settings. Please select the SDK type to continue.',
diff --git a/packages/phrases/src/locales/zh-cn.ts b/packages/phrases/src/locales/zh-cn.ts
index 07986cd9e..34aedd878 100644
--- a/packages/phrases/src/locales/zh-cn.ts
+++ b/packages/phrases/src/locales/zh-cn.ts
@@ -107,7 +107,7 @@ const translation = {
guide: {
get_sample_file: '获取示例工程',
header_description:
- '参考如下教程,将 Logto 集成到你的应用中。你也可以点击右侧链接,获取我们为你准备好的示范工程。',
+ '参考如下教程,将 Logto 集成到你的应用中。你也可以点击右侧按钮,获取我们为你准备好的示范工程。',
title: '应用创建成功',
subtitle: '参考以下步骤完成你的应用设置。首先,选择你要使用的 SDK 类型:',
description_by_sdk: '本教程向你演示如何在 {{sdk}} 应用中集成 Logto 登录功能',