I am having issues overwriting the items props for breadcrumbs in my react app. The image shows the code for this.
import * as React from "react";
import {
PlasmicDashboardContent,
DefaultDashboardContentProps
} from "./plasmic/map_map/PlasmicDashboardContent";
import { HTMLElementRefOf } from "@plasmicapp/react-web";
import { AntdBreadcrumbItem } from "@plasmicpkgs/antd5/skinny/registerBreadcrumb"
export interface DashboardContentProps extends DefaultDashboardContentProps {}
function DashboardContent_(
props: DashboardContentProps,
ref: HTMLElementRefOf<"div">
) {
const folders = ['Folder 1', 'Folder 2']
return <PlasmicDashboardContent
folderBreadcrumbs={{
style: {
color: 'white'
},
//@ts-ignore
items: folders.map((folder, index) => <AntdBreadcrumbItem style={{color: 'red'}}>{ folder }</AntdBreadcrumbItem>)
}}
root={{ ref }}
{...props}
/>;
}
const DashboardContent = React.forwardRef(DashboardContent_);
export default DashboardContent;
Above is my code that shows how I am trying to overwrite the breadcrumb items. After running this code, I still see the default breadcrumb items from my plasmic studio.