From b6b6cb193408e0de7223f03c58c8615f4a7690e7 Mon Sep 17 00:00:00 2001 From: AlexandreSi <32449369+AlexandreSi@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:36:02 +0200 Subject: [PATCH] Fix DismissableTutorialMessage stories typing --- .../DismissableTutorialMessage.stories.js | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/newIDE/app/src/stories/componentStories/DismissableTutorialMessage.stories.js b/newIDE/app/src/stories/componentStories/DismissableTutorialMessage.stories.js index 02a88b3bc700..72fcf3a8621a 100644 --- a/newIDE/app/src/stories/componentStories/DismissableTutorialMessage.stories.js +++ b/newIDE/app/src/stories/componentStories/DismissableTutorialMessage.stories.js @@ -11,23 +11,29 @@ import { import PreferencesContext from '../../MainFrame/Preferences/PreferencesContext'; import { TutorialContext } from '../../Tutorial/TutorialContext'; -const defaultTutorials = [ +const defaultTutorials: Array = [ { id: 'tutorial-1', - title: 'Tutorial 1', - description: 'Description 1', - thumbnailUrl: - 'https://raw.githubusercontent.com/4ian/GDevelop/master/Core/docs/images/gdlogo.png', - link: 'https://example.com/tutorial.html', + titleByLocale: { en: 'Tutorial 1' }, + category: 'official-beginner', + descriptionByLocale: { en: 'Description 1' }, + thumbnailUrlByLocale: { + en: + 'https://raw.githubusercontent.com/4ian/GDevelop/master/Core/docs/images/gdlogo.png', + }, + linkByLocale: { en: 'https://example.com/tutorial.html' }, type: 'video', }, { id: 'tutorial-2', - title: 'Tutorial 2', - description: 'Description 2', - thumbnailUrl: - 'https://raw.githubusercontent.com/4ian/GDevelop/master/Core/docs/images/gdlogo.png', - link: 'https://example.com/tutorial.html', + titleByLocale: { en: 'Tutorial 2' }, + category: 'official-beginner', + descriptionByLocale: { en: 'Description 2' }, + thumbnailUrlByLocale: { + en: + 'https://raw.githubusercontent.com/4ian/GDevelop/master/Core/docs/images/gdlogo.png', + }, + linkByLocale: { en: 'https://example.com/tutorial.html' }, type: 'text', }, ];