From a27a51e07b70d4de1fe0987e33dc00bc7b27f1d0 Mon Sep 17 00:00:00 2001 From: bgptr Date: Sat, 23 Dec 2023 23:44:04 +0100 Subject: [PATCH] introduce tutorialList and tutorialShortList --- .../LoadingPage/LoadingPage.jsx | 14 +++----------- .../WalletSelection/Form/Form.jsx | 5 +++-- .../TutorialsTab/TutorialsTab.jsx | 18 +++++++----------- .../TutorialsTab/helpers/index.js | 6 +++++- .../TutorialsTab/helpers/tutorials.js | 19 +++++++++++++++++++ 5 files changed, 37 insertions(+), 25 deletions(-) diff --git a/app/components/views/GetStartedPage/LoadingPage/LoadingPage.jsx b/app/components/views/GetStartedPage/LoadingPage/LoadingPage.jsx index 4d95b43978..cb544f21e2 100644 --- a/app/components/views/GetStartedPage/LoadingPage/LoadingPage.jsx +++ b/app/components/views/GetStartedPage/LoadingPage/LoadingPage.jsx @@ -1,6 +1,7 @@ import { TutorialOverview, - tutorials + tutorials, + tutorialList } from "../../SettingsPage/TutorialsTab/helpers"; import { Subtitle } from "shared"; import { FormattedMessage as T } from "react-intl"; @@ -18,16 +19,7 @@ const LoadingPage = ({ onShowOnboardingTutorial }) => { /> } /> - {[ - "decredIntro", - "ln", - "consensusCode", - "powPos", - "tickets", - "staking", - "lifecycle", - "consensusVoting" - ].map((name) => ( + {tutorialList.map((name) => ( } /> - {["decredIntro", "powPos", "lifecycle", "blocks"].map((name) => ( + {tutorialShortList.map((name) => ( { } /> - {[ - "decredIntro", - "ln", - "consensusCode", - "powPos", - "tickets", - "staking", - "lifecycle", - "consensusVoting" - ].map((name) => ( + {tutorialList.map((name) => (