From 09bc4fed71d7f39d585bbbfb4a803c3a861ca51f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Vivet?= Date: Wed, 25 Sep 2024 18:50:13 +0200 Subject: [PATCH] Make the codebase consistent --- .../HomePage/InAppTutorials/GuidedLessons.js | 12 ++++++------ .../app/src/Utils/GDevelopServices/InAppTutorial.js | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/newIDE/app/src/MainFrame/EditorContainers/HomePage/InAppTutorials/GuidedLessons.js b/newIDE/app/src/MainFrame/EditorContainers/HomePage/InAppTutorials/GuidedLessons.js index de42add85e05..53eae97f237c 100644 --- a/newIDE/app/src/MainFrame/EditorContainers/HomePage/InAppTutorials/GuidedLessons.js +++ b/newIDE/app/src/MainFrame/EditorContainers/HomePage/InAppTutorials/GuidedLessons.js @@ -21,9 +21,9 @@ import { OBJECT_3D_IN_APP_TUTORIAL_ID, KNIGHT_PLATFORMER_IN_APP_TUTORIAL_ID, TOP_DOWN_RPG_MOVEMENT_ID, - FIRE_A_BULLET, - COOP_PLATFORMER, - TILEMAP_PLATFORMER, + FIRE_A_BULLET_ID, + COOP_PLATFORMER_ID, + TILEMAP_PLATFORMER_ID, guidedLessonsIds, } from '../../../../Utils/GDevelopServices/InAppTutorial'; import MultiplierScore from './Icons/MultiplierScore'; @@ -180,21 +180,21 @@ const GuidedLessons = ({ selectInAppTutorial, lessonsIds }: Props) => { renderImage: props => , }, { - id: FIRE_A_BULLET, + id: FIRE_A_BULLET_ID, title: t`Fire a Bullet`, description: t`Learn how to fire bullets with the help of a behavior. Get ready for a Star Wars show.`, durationInMinutes: 3, renderImage: props => , }, { - id: COOP_PLATFORMER, + id: COOP_PLATFORMER_ID, title: t`The basics of Multiplayer`, description: t`Learn how to use the multiplayer behavior and the ownership system in this co-op platformer.`, durationInMinutes: 3, renderImage: props => , }, { - id: TILEMAP_PLATFORMER, + id: TILEMAP_PLATFORMER_ID, title: t`The basics of Tilemap`, description: t`Learn how to use the tilemap object and the event that goes with it.`, durationInMinutes: 1, diff --git a/newIDE/app/src/Utils/GDevelopServices/InAppTutorial.js b/newIDE/app/src/Utils/GDevelopServices/InAppTutorial.js index 1d30d4515180..e917ae7fc64a 100644 --- a/newIDE/app/src/Utils/GDevelopServices/InAppTutorial.js +++ b/newIDE/app/src/Utils/GDevelopServices/InAppTutorial.js @@ -14,9 +14,9 @@ export const TIMER_IN_APP_TUTORIAL_ID = 'timer'; export const OBJECT_3D_IN_APP_TUTORIAL_ID = 'object3d'; export const KNIGHT_PLATFORMER_IN_APP_TUTORIAL_ID = 'knightPlatformer'; export const TOP_DOWN_RPG_MOVEMENT_ID = 'topDownRPGMovement'; -export const FIRE_A_BULLET = 'fireABullet'; -export const COOP_PLATFORMER = 'coopPlatformer'; -export const TILEMAP_PLATFORMER = 'tilemapPlatformer'; +export const FIRE_A_BULLET_ID = 'fireABullet'; +export const COOP_PLATFORMER_ID = 'coopPlatformer'; +export const TILEMAP_PLATFORMER_ID = 'tilemapPlatformer'; export const guidedLessonsIds = [ PLINKO_MULTIPLIER_IN_APP_TUTORIAL_ID, @@ -27,9 +27,9 @@ export const guidedLessonsIds = [ OBJECT_3D_IN_APP_TUTORIAL_ID, KNIGHT_PLATFORMER_IN_APP_TUTORIAL_ID, TOP_DOWN_RPG_MOVEMENT_ID, - FIRE_A_BULLET, - COOP_PLATFORMER, - TILEMAP_PLATFORMER, + FIRE_A_BULLET_ID, + COOP_PLATFORMER_ID, + TILEMAP_PLATFORMER_ID, ]; export type InAppTutorialShortHeader = {|