diff options
author | Ricardo Cino <ricardo@cino.io> | 2022-06-27 18:21:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 17:21:31 +0100 |
commit | 0bf13689d53bd493fb4d0a4213c1801013b5aa8a (patch) | |
tree | 2b5ae44e4f1aa73b49c011954ff1cb47e3959bad /src/stores/RecipePreviewsStore.ts | |
parent | chore: recommend specific vscode extensions to setup development [skip ci] (#... (diff) | |
download | ferdium-app-0bf13689d53bd493fb4d0a4213c1801013b5aa8a.tar.gz ferdium-app-0bf13689d53bd493fb4d0a4213c1801013b5aa8a.tar.zst ferdium-app-0bf13689d53bd493fb4d0a4213c1801013b5aa8a.zip |
chore: transform containers/settings from js to tsx (#384)
Diffstat (limited to 'src/stores/RecipePreviewsStore.ts')
-rw-r--r-- | src/stores/RecipePreviewsStore.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stores/RecipePreviewsStore.ts b/src/stores/RecipePreviewsStore.ts index 099867785..ad9fda4a7 100644 --- a/src/stores/RecipePreviewsStore.ts +++ b/src/stores/RecipePreviewsStore.ts | |||
@@ -4,6 +4,7 @@ import { ApiInterface } from 'src/api'; | |||
4 | import Recipe from 'src/models/Recipe'; | 4 | import Recipe from 'src/models/Recipe'; |
5 | import { Stores } from 'src/@types/stores.types'; | 5 | import { Stores } from 'src/@types/stores.types'; |
6 | 6 | ||
7 | import RecipePreview from 'src/models/RecipePreview'; | ||
7 | import CachedRequest from './lib/CachedRequest'; | 8 | import CachedRequest from './lib/CachedRequest'; |
8 | import Request from './lib/Request'; | 9 | import Request from './lib/Request'; |
9 | import TypedStore from './lib/TypedStore'; | 10 | import TypedStore from './lib/TypedStore'; |
@@ -35,15 +36,15 @@ export default class RecipePreviewsStore extends TypedStore { | |||
35 | // Not implemented | 36 | // Not implemented |
36 | } | 37 | } |
37 | 38 | ||
38 | @computed get all(): Recipe[] { | 39 | @computed get all(): RecipePreview[] { |
39 | return this.allRecipePreviewsRequest.execute().result || []; | 40 | return this.allRecipePreviewsRequest.execute().result || []; |
40 | } | 41 | } |
41 | 42 | ||
42 | @computed get featured(): Recipe[] { | 43 | @computed get featured(): RecipePreview[] { |
43 | return this.featuredRecipePreviewsRequest.execute().result || []; | 44 | return this.featuredRecipePreviewsRequest.execute().result || []; |
44 | } | 45 | } |
45 | 46 | ||
46 | @computed get searchResults(): Recipe[] { | 47 | @computed get searchResults(): RecipePreview[] { |
47 | return this.searchRecipePreviewsRequest.result || []; | 48 | return this.searchRecipePreviewsRequest.result || []; |
48 | } | 49 | } |
49 | 50 | ||