From 637cda8189b9829de26f9e873664a6b03046721e Mon Sep 17 00:00:00 2001 From: shalluv Date: Fri, 11 Oct 2024 14:01:25 +0700 Subject: [PATCH] refactor: clean up a bit --- src/app/form/[id]/layout.tsx | 6 +----- src/app/form/[id]/page.tsx | 2 +- src/components/Button/index.test.tsx | 11 ----------- src/components/Button/index.tsx | 3 --- 4 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 src/components/Button/index.test.tsx delete mode 100644 src/components/Button/index.tsx diff --git a/src/app/form/[id]/layout.tsx b/src/app/form/[id]/layout.tsx index fba52e5..0d225f1 100644 --- a/src/app/form/[id]/layout.tsx +++ b/src/app/form/[id]/layout.tsx @@ -5,9 +5,5 @@ export default async function FormLayout({ }: Readonly<{ children: React.ReactNode }>) { - return ( -
- {children} -
- ) + return {children} } diff --git a/src/app/form/[id]/page.tsx b/src/app/form/[id]/page.tsx index 6c3ea7b..16caeab 100644 --- a/src/app/form/[id]/page.tsx +++ b/src/app/form/[id]/page.tsx @@ -44,7 +44,7 @@ export default function Page({ params: { id } }: PageProps) { } return ( -
+
{ - test('should render button', () => { - const { getByText } = render( -}