Skip to content

Commit

Permalink
Fix DismissableTutorialMessage stories typing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreSi committed Sep 18, 2024
1 parent 8ba352d commit b6b6cb1
Showing 1 changed file with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,29 @@ import {
import PreferencesContext from '../../MainFrame/Preferences/PreferencesContext';
import { TutorialContext } from '../../Tutorial/TutorialContext';

const defaultTutorials = [
const defaultTutorials: Array<Tutorial> = [
{
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',
},
];
Expand Down

0 comments on commit b6b6cb1

Please sign in to comment.