Skip to content

fix : Using React.ReactNode instead of any #5764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sachin-nanayakkara
Copy link

This will ensure that the children prop only accepts values that are valid ReactNode types, providing better type safety and avoiding potential errors in code

function CollapseWrapper({ isExpanded, duration, children, }: { isExpanded: boolean; duration: number; children: any; }) {

<CollapseWrapper duration={250} isExpanded={isExpanded}> <SidebarRouteTree isForceExpanded={isForceExpanded} routeTree={{title, routes}} breadcrumbs={breadcrumbs} level={level + 1} /> </CollapseWrapper>

@github-actions
Copy link

Size Changes

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants