You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type '(props: AppBarProps) => JSX.Element' is not assignable to type 'FunctionComponent<{ title?: string | ReactElement<any, string | JSXElementConstructor<any>> | undefined; open?: boolean
Even passing the standard react-admin AppBar component to appBar is not accepted. The error doesn't happen if I have typescript set with strict: false and then everything works, but that is not a desired solution.
I am using Typescript (strict: true) and trying to pass a custom appbar to Layout:
const CustomLayout = (props: LayoutProps) => <Layout {...props} appBar={CustomAppBar} />;
Even passing the standard react-admin AppBar component to appBar is not accepted. The error doesn't happen if I have typescript set with strict: false and then everything works, but that is not a desired solution.
Related code:
check this sandbox:
https://codesandbox.io/s/exciting-driscoll-w9fuv?file=/src/App.tsx:917-923
Environment
The text was updated successfully, but these errors were encountered: