This repository was archived by the owner on May 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ export default function FavoriteCookbooks() {
42
42
return < CookbookTableLoading /> ;
43
43
}
44
44
45
- if ( userCookbooks . length === 0 ) {
46
- return < CookbookTableEmpty /> ;
45
+ if ( filteredCookbooks . length === 0 && ! filters . isEmpty ) {
46
+ return < CookbookTableEmptyFiltered /> ;
47
47
}
48
48
49
49
if ( filteredCookbooks . length === 0 ) {
50
- return < CookbookTableEmptyFiltered /> ;
50
+ return < CookbookTableEmpty /> ;
51
51
}
52
52
53
53
return < CookbookTable page = "favorite" cookbooks = { filteredCookbooks } /> ;
Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ export default function MySnippets() {
44
44
return < SnippetTableLoading /> ;
45
45
}
46
46
47
- if ( userFavoriteRecipes . length === 0 ) {
48
- return < SnippetTableEmpty /> ;
47
+ if ( filteredRecipes . length === 0 && ! filters . isEmpty ) {
48
+ return < SnippetTableEmptyFiltered /> ;
49
49
}
50
50
51
51
if ( filteredRecipes . length === 0 ) {
52
- return < SnippetTableEmptyFiltered /> ;
52
+ return < SnippetTableEmpty /> ;
53
53
}
54
54
55
55
return < SnippetTable page = "favorite" recipes = { filteredRecipes } /> ;
Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ export default function MyCookbooks() {
42
42
return < CookbookTableLoading /> ;
43
43
}
44
44
45
- if ( userCookbooks . length === 0 ) {
46
- return < CookbookTableEmpty /> ;
45
+ if ( filteredCookbooks . length === 0 && ! filters . isEmpty ) {
46
+ return < CookbookTableEmptyFiltered /> ;
47
47
}
48
48
49
49
if ( filteredCookbooks . length === 0 ) {
50
- return < CookbookTableEmptyFiltered /> ;
50
+ return < CookbookTableEmpty /> ;
51
51
}
52
52
53
53
return < CookbookTable page = "my" cookbooks = { filteredCookbooks } /> ;
Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ export default function MySnippets() {
44
44
return < SnippetTableLoading /> ;
45
45
}
46
46
47
- if ( userRecipes . length === 0 ) {
48
- return < SnippetTableEmpty /> ;
47
+ if ( filteredRecipes . length === 0 && ! filters . isEmpty ) {
48
+ return < SnippetTableEmptyFiltered /> ;
49
49
}
50
50
51
51
if ( filteredRecipes . length === 0 ) {
52
- return < SnippetTableEmptyFiltered /> ;
52
+ return < SnippetTableEmpty /> ;
53
53
}
54
54
55
55
return < SnippetTable page = "my" recipes = { filteredRecipes } /> ;
Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ export default function TeamCookbooks() {
41
41
return < CookbookTableLoading /> ;
42
42
}
43
43
44
- if ( userCookbooks . length === 0 ) {
45
- return < CookbookTableEmpty /> ;
44
+ if ( filteredCookbooks . length === 0 && ! filters . isEmpty ) {
45
+ return < CookbookTableEmptyFiltered /> ;
46
46
}
47
47
48
48
if ( filteredCookbooks . length === 0 ) {
49
- return < CookbookTableEmptyFiltered /> ;
49
+ return < CookbookTableEmpty /> ;
50
50
}
51
51
52
52
return < CookbookTable page = "team" cookbooks = { filteredCookbooks } /> ;
Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ export default function TeamSnippets() {
44
44
return < SnippetTableLoading /> ;
45
45
}
46
46
47
- if ( teamRecipes . length === 0 ) {
48
- return < SnippetTableEmpty /> ;
47
+ if ( filteredRecipes . length === 0 && ! filters . isEmpty ) {
48
+ return < SnippetTableEmptyFiltered /> ;
49
49
}
50
50
51
51
if ( filteredRecipes . length === 0 ) {
52
- return < SnippetTableEmptyFiltered /> ;
52
+ return < SnippetTableEmpty /> ;
53
53
}
54
54
55
55
return < SnippetTable page = "team" recipes = { filteredRecipes } /> ;
You can’t perform that action at this time.
0 commit comments