Skip to content

Commit

Permalink
style: resolve sonarlint issues
Browse files Browse the repository at this point in the history
- make PageLayout readonly
- This assertion is unnecessary since it does not change the type of the expression.
  • Loading branch information
aalemayhu committed Nov 19, 2024
1 parent 348af27 commit ee736c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Layout/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ interface PageLayoutProps {
error?: Error | null;
}

export function PageLayout({ children, error }: PageLayoutProps) {
export function PageLayout({ children, error }: Readonly<PageLayoutProps>) {
return (
<PageContent>
<NavigationBar />
{error && <ErrorPresenter error={error as Error} />}
{error && <ErrorPresenter error={error} />}
{children}
</PageContent>
);
Expand Down

0 comments on commit ee736c4

Please sign in to comment.