Browse Source

add style

visuddhinanda 2 years ago
parent
commit
8c522e4e50
1 changed files with 5 additions and 2 deletions
  1. 5 2
      dashboard/src/components/corpus/TocPath.tsx

+ 5 - 2
dashboard/src/components/corpus/TocPath.tsx

@@ -21,6 +21,7 @@ interface IWidgetTocPath {
   trigger?: React.ReactNode;
   link?: ELinkType;
   channel?: string[];
+  style?: React.CSSProperties;
   onChange?: Function;
 }
 const TocPathWidget = ({
@@ -28,13 +29,15 @@ const TocPathWidget = ({
   trigger,
   link = "self",
   channel,
+  style,
   onChange,
 }: IWidgetTocPath): JSX.Element => {
   const navigate = useNavigate();
   const [searchParams, setSearchParams] = useSearchParams();
-
   const fullPath = (
-    <Breadcrumb style={{ whiteSpace: "nowrap", width: "100%" }}>
+    <Breadcrumb
+      style={{ whiteSpace: "nowrap", width: "100%", fontSize: style?.fontSize }}
+    >
       {data.map((item, id) => {
         return (
           <Breadcrumb.Item