Skip to content

Commit

Permalink
test: use ReactNode
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Alemayhu <alexander@alemayhu.com>
  • Loading branch information
aalemayhu committed Jan 25, 2025
1 parent 7037273 commit 65c5b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Layout/SideBar/ProtectedItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface ProtectedItemsProps {
export function ProtectedItems({
visible,
children,
}: ProtectedItemsProps): JSX.Element | null {
}: ProtectedItemsProps): React.ReactNode | null {
// eslint-disable-next-line react/jsx-no-useless-fragment
return visible ? <>{children}</> : null;
}

0 comments on commit 65c5b2c

Please sign in to comment.