SolidJSS
SolidJSโ€ข2y agoโ€ข
2 replies
mrVinicius

Appropiate type for Router root

Help me get rid of this error.

I put an any on it but linter complains at me. What would be appropriate type for props here?

export default (props: any) => {
    return (
        <div class={"w-screen h-screen bg-gray-200 p-4"}>
            <Sidenav.Component baseUri={'/dash'}>
                <Sidenav.Nav
                    name={'Principal'}
                    route={'/'}
                    icon={principalIcon}
                />

                <Sidenav.Group
                    name={'Catalogo'}
                    icon={constructionIcon}
                >
                    <Sidenav.Nav
                        name={'Item'}
                        route={'/construction/catalog'}
                    />
                </Sidenav.Group>
            </Sidenav.Component>
            {props.children}
        </div>
    );
};
Screenshot_from_2024-08-01_08-04-35.png
Was this page helpful?