From c06b861e1c7dd0f2b0cde8dde38d1d88c70d2d06 Mon Sep 17 00:00:00 2001 From: Brian Perry Date: Wed, 26 Jun 2024 17:23:09 -0500 Subject: [PATCH] docs(www): run codemod to resolve Invalid `` with `` child (#782) --- www/components/card.tsx | 17 +++--- www/components/layout.tsx | 97 ++++++++++++++++++---------------- www/components/pager.tsx | 64 +++++++++++----------- www/components/sidebar-nav.tsx | 61 ++++++++++----------- www/pages/blog/index.tsx | 12 +++-- www/pages/guides/index.tsx | 56 ++++++++++---------- www/pages/index.tsx | 38 ++++++------- www/pages/learn/[...slug].tsx | 31 +++++------ www/pages/learn/index.tsx | 12 +++-- 9 files changed, 203 insertions(+), 185 deletions(-) diff --git a/www/components/card.tsx b/www/components/card.tsx index 5936f664..273e8cce 100644 --- a/www/components/card.tsx +++ b/www/components/card.tsx @@ -8,14 +8,15 @@ interface CardProps extends LinkProps { export function Card({ children, href, ...props }: CardProps) { return ( - - - {children} - + + {children} ) } diff --git a/www/components/layout.tsx b/www/components/layout.tsx index 7728f58e..253ef78d 100644 --- a/www/components/layout.tsx +++ b/www/components/layout.tsx @@ -86,15 +86,15 @@ export function Layout({ >