transformLabel?: ((title: string) => React.ReactNode) | undefined;
albertcito opened this issue · 1 comments
albertcito commented
Could be possible add modify:
transformLabel?: ((title: string) => string) | undefined;
to
transformLabel?: ((title: string) => React.ReactNode) | undefined;
Because I would like replace Home
by an icon.
transformLabel={(label: string) => {
if (label === 'Home') {
return <HomeOutlined />;
}
return label;
}}
NiklasMencke commented
Good catch! Fixed in #21