diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-02 12:08:13 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-07-02 12:08:13 +0530 |
commit | e0aebbd0b6544c264f6aad22a75ac3a1b1ecada4 (patch) | |
tree | f05aad5bf5695ff28b4e50f351780c2bfc887d2f /src/containers/settings/RecipesScreen.js | |
parent | Bumped up version to be at par with nightly as of now [skip ci] (diff) | |
download | ferdium-app-e0aebbd0b6544c264f6aad22a75ac3a1b1ecada4.tar.gz ferdium-app-e0aebbd0b6544c264f6aad22a75ac3a1b1ecada4.tar.zst ferdium-app-e0aebbd0b6544c264f6aad22a75ac3a1b1ecada4.zip |
Minor code cleanup: Use constant that's already defined (instead of a string literal).
Diffstat (limited to 'src/containers/settings/RecipesScreen.js')
-rw-r--r-- | src/containers/settings/RecipesScreen.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/containers/settings/RecipesScreen.js b/src/containers/settings/RecipesScreen.js index 72d551bc2..c69a70e2f 100644 --- a/src/containers/settings/RecipesScreen.js +++ b/src/containers/settings/RecipesScreen.js | |||
@@ -18,6 +18,7 @@ import { FRANZ_DEV_DOCS, RECIPES_PATH } from '../../config'; | |||
18 | import { communityRecipesStore } from '../../features/communityRecipes'; | 18 | import { communityRecipesStore } from '../../features/communityRecipes'; |
19 | import RecipePreview from '../../models/RecipePreview'; | 19 | import RecipePreview from '../../models/RecipePreview'; |
20 | import AppStore from '../../stores/AppStore'; | 20 | import AppStore from '../../stores/AppStore'; |
21 | import CUSTOM_WEBSITE_ID from '../../features/webControls/constants'; | ||
21 | 22 | ||
22 | export default @inject('stores', 'actions') @observer class RecipesScreen extends Component { | 23 | export default @inject('stores', 'actions') @observer class RecipesScreen extends Component { |
23 | static propTypes = { | 24 | static propTypes = { |
@@ -138,7 +139,7 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
138 | ), | 139 | ), |
139 | ]) : recipeFilter; | 140 | ]) : recipeFilter; |
140 | 141 | ||
141 | const customWebsiteRecipe = recipePreviews.all.find(service => service.id === 'franz-custom-website'); | 142 | const customWebsiteRecipe = recipePreviews.all.find(service => service.id === CUSTOM_WEBSITE_ID); |
142 | 143 | ||
143 | const isLoading = recipePreviews.featuredRecipePreviewsRequest.isExecuting | 144 | const isLoading = recipePreviews.featuredRecipePreviewsRequest.isExecuting |
144 | || recipePreviews.allRecipePreviewsRequest.isExecuting | 145 | || recipePreviews.allRecipePreviewsRequest.isExecuting |