From 08d02664c60d977676d9bb3c926e4d85007af91f Mon Sep 17 00:00:00 2001 From: Nishant Racherla Date: Thu, 18 Jan 2024 16:07:30 -0800 Subject: [PATCH] Change markdown renderer components margins --- app/(recipes)/recipes/[item]/page.tsx | 8 ++------ app/(recipes)/recipes/like-button.tsx | 1 - components/markdown-renderer.tsx | 10 +++++----- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/app/(recipes)/recipes/[item]/page.tsx b/app/(recipes)/recipes/[item]/page.tsx index 470e8a6..6c51888 100644 --- a/app/(recipes)/recipes/[item]/page.tsx +++ b/app/(recipes)/recipes/[item]/page.tsx @@ -93,15 +93,11 @@ export default async function RecipeItem({

Ingredients

-
- {recipe.ingredients} -
+ {recipe.ingredients}

Procedure

-
- {recipe.procedure} -
+ {recipe.procedure}
); diff --git a/app/(recipes)/recipes/like-button.tsx b/app/(recipes)/recipes/like-button.tsx index fef701a..b513184 100644 --- a/app/(recipes)/recipes/like-button.tsx +++ b/app/(recipes)/recipes/like-button.tsx @@ -19,7 +19,6 @@ export default function LikeButton({ userLiked, (state, _) => !state, ); - const handleLike = async () => { setOptimisticUserLiked(!userLiked); await changeLike(recipeId, likes, optimisticUserLiked); diff --git a/components/markdown-renderer.tsx b/components/markdown-renderer.tsx index e4e7ebb..00d06a5 100644 --- a/components/markdown-renderer.tsx +++ b/components/markdown-renderer.tsx @@ -23,23 +23,23 @@ export const MarkdownRenderer: React.FC = ({ p: ({ children }) =>

{children}

, img: () => null, ul: ({ children }) => ( -