From ee736c4209674a19f257199bca67d3e4d269cb90 Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Tue, 19 Nov 2024 05:48:09 +0100 Subject: [PATCH] style: resolve sonarlint issues - make PageLayout readonly - This assertion is unnecessary since it does not change the type of the expression. --- src/components/Layout/PageLayout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Layout/PageLayout.tsx b/src/components/Layout/PageLayout.tsx index 2c9e8c6..810e623 100644 --- a/src/components/Layout/PageLayout.tsx +++ b/src/components/Layout/PageLayout.tsx @@ -8,11 +8,11 @@ interface PageLayoutProps { error?: Error | null; } -export function PageLayout({ children, error }: PageLayoutProps) { +export function PageLayout({ children, error }: Readonly) { return ( - {error && } + {error && } {children} );