Skip to content

Commit c22abdc

Browse files
authored
Auth gate feature-recipe edit and new pages, organize and fix tests (#107)
* Auth gate feature-recipe edit and new pages, organize and fix tests * Revert unused imports in feature view
1 parent a236c01 commit c22abdc

5 files changed

Lines changed: 221 additions & 399 deletions

File tree

websites/recipe-website/common/components/List/shared.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function RecipeCardLink({
3131
return (
3232
<Link
3333
href={href}
34-
className={`block group flex flex-col flex-nowrap h-full ${className}`}
34+
className={`block group flex flex-col flex-nowrap ${className}`}
3535
>
3636
{children}
3737
</Link>

websites/recipe-website/editor/controller/actions/featuredRecipes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export async function deleteFeaturedRecipe(date: number, slug: string) {
168168
revalidatePath("/featured-recipe/" + slug);
169169
revalidatePath("/featured-recipes");
170170
revalidatePath("/");
171-
redirect("/featured-recipes");
171+
redirect("/");
172172
}
173173

174174
export async function rebuildFeaturedRecipeIndex() {

0 commit comments

Comments
 (0)