Bladeren bron

add title

visuddhinanda 1 jaar geleden
bovenliggende
commit
a0dfe6ad54
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4 1
      dashboard/src/components/tag/TagsManager.tsx

+ 4 - 1
dashboard/src/components/tag/TagsManager.tsx

@@ -1,5 +1,5 @@
 import { useState } from "react";
 import { useState } from "react";
-import { Modal } from "antd";
+import { Alert, Modal } from "antd";
 
 
 import TagsOnItem from "./TagsOnItem";
 import TagsOnItem from "./TagsOnItem";
 
 
@@ -7,6 +7,7 @@ interface IWidget {
   studioName?: string;
   studioName?: string;
   resId?: string;
   resId?: string;
   resType?: string;
   resType?: string;
+  title?: React.ReactNode;
   trigger?: React.ReactNode;
   trigger?: React.ReactNode;
   onSelect?: Function;
   onSelect?: Function;
 }
 }
@@ -14,6 +15,7 @@ const TagsManagerWidget = ({
   studioName,
   studioName,
   resId,
   resId,
   resType,
   resType,
+  title,
   trigger,
   trigger,
   onSelect,
   onSelect,
 }: IWidget) => {
 }: IWidget) => {
@@ -43,6 +45,7 @@ const TagsManagerWidget = ({
         destroyOnClose
         destroyOnClose
         footer={false}
         footer={false}
       >
       >
+        {title ? <Alert message={title} /> : undefined}
         <TagsOnItem studioName={studioName} resId={resId} resType={resType} />
         <TagsOnItem studioName={studioName} resId={resId} resType={resType} />
       </Modal>
       </Modal>
     </>
     </>