= ({ items = [], ...props }) => {
- // Convert custom items format to Antd's expected format
+ // Convert custom items format to the standard format used throughout the application
const breadcrumbItems = items.map(item => ({
key: item.key,
- title: item.onClick ? (
- {
- e.currentTarget.style.color = '#096dd9';
- e.currentTarget.style.textDecoration = 'underline';
- }}
- onMouseLeave={(e) => {
- e.currentTarget.style.color = '#1890ff';
- e.currentTarget.style.textDecoration = 'none';
- }}
- >
- {item.title}
-
- ) : (
-
- {item.title}
-
- )
+ title: item.title,
+ onClick: item.onClick
}));
return (
-
- /}
- items={breadcrumbItems}
- />
-
+ }
+ items={breadcrumbItems}
+ itemRender={(item) => (
+
+ {item.title}
+
+ )}
+ />
);
};
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy