abstract-purpleA
Refine3y ago
4 replies
abstract-purple

Unable to use Header in ThemedLayoutV2

I'm following the instructions here https://refine.dev/docs/api-reference/antd/theming/#switching-to-dark-theme

and I get this error:

Type 'FC<HeaderProps>' is not assignable to type 'FunctionComponent<{}>'.
  Types of parameters 'props' and 'props' are incompatible.
    Type '{}' is not assignable to type 'HeaderProps'.
    309 |             )}
    310 |           >
  > 311 |             <ThemedLayoutV2 Header={Header} Sider={SideMenu}></ThemedLayoutV2>
        |                             ^^^^^^
    312 |           </Refine>
Ant Design allows you to customize design tokens to satisfy UI diversity from business or brand requirements, including primary color, border radius, border color, etc.
Theme | refine
Was this page helpful?