From 11fbe557efe4230cb359e61525e4b48bad2e72a2 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 1 Feb 2023 13:23:23 +0000 Subject: [PATCH] simpler --- beta/src/components/Layout/HomeContent.tsx | 57 +++------------------- 1 file changed, 8 insertions(+), 49 deletions(-) diff --git a/beta/src/components/Layout/HomeContent.tsx b/beta/src/components/Layout/HomeContent.tsx index eabe38878..446096713 100644 --- a/beta/src/components/Layout/HomeContent.tsx +++ b/beta/src/components/Layout/HomeContent.tsx @@ -410,13 +410,8 @@ function CodeAnimation() {
{`function Comment({ author, comment }) { return ( - - - - - {comment.text} - - + + {comment.text} ); }`}
@@ -446,11 +441,8 @@ function Example() { function Comment({author, comment}) { return ( - - - - {comment.text} - + + {comment.text} ); } @@ -459,9 +451,8 @@ function Panel({children}) { return (
- {children} -
- {to.name} -
-
- ); -} - -function Avatar({image}) { +function Avatar({user}) { return ( - {children} -
- ); -} - function LikeButton() { return (