diff options
author | muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> | 2022-10-27 07:13:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 01:43:47 +0000 |
commit | 81c43ecc3d17e0dbf7ad1d949b6d977f2c65bd48 (patch) | |
tree | dfa7c08cb54fb81b7d2e788d350de52c2ebd05d2 /src/models | |
parent | 6.2.1-nightly.30 [skip ci] (diff) | |
download | ferdium-app-81c43ecc3d17e0dbf7ad1d949b6d977f2c65bd48.tar.gz ferdium-app-81c43ecc3d17e0dbf7ad1d949b6d977f2c65bd48.tar.zst ferdium-app-81c43ecc3d17e0dbf7ad1d949b6d977f2c65bd48.zip |
fix: 'failed prop' warning in QuickSwitchModal, SettingsNavigation, SettingsWindow and Recipe component tree (#713)
* chore: turn off eslint rule @typescript-eslint/no-useless-constructor to initialize dynamic props & state
Co-authored-by: Muhamed <>
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/RecipePreview.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/models/RecipePreview.ts b/src/models/RecipePreview.ts index fb8cb3e3e..33b5e1432 100644 --- a/src/models/RecipePreview.ts +++ b/src/models/RecipePreview.ts | |||
@@ -4,6 +4,10 @@ interface IRecipePreview { | |||
4 | icon: string; | 4 | icon: string; |
5 | featured: boolean; | 5 | featured: boolean; |
6 | aliases: string[]; | 6 | aliases: string[]; |
7 | isDevRecipe?: boolean; | ||
8 | icons?: { | ||
9 | svg: string; | ||
10 | }; | ||
7 | } | 11 | } |
8 | 12 | ||
9 | export default class RecipePreview { | 13 | export default class RecipePreview { |
@@ -17,6 +21,12 @@ export default class RecipePreview { | |||
17 | 21 | ||
18 | aliases: string[] = []; | 22 | aliases: string[] = []; |
19 | 23 | ||
24 | isDevRecipe?: boolean; | ||
25 | |||
26 | icons?: { | ||
27 | svg: string; | ||
28 | }; | ||
29 | |||
20 | constructor(data: IRecipePreview) { | 30 | constructor(data: IRecipePreview) { |
21 | if (!data) { | 31 | if (!data) { |
22 | throw new Error('RecipePreview config not valid'); | 32 | throw new Error('RecipePreview config not valid'); |