visuddhinanda il y a 2 ans
Parent
commit
e950a29426
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      dashboard/src/components/template/MdTpl.tsx

+ 3 - 0
dashboard/src/components/template/MdTpl.tsx

@@ -6,6 +6,7 @@ import Quote from "./Quote";
 import SentEdit from "./SentEdit";
 import SentEdit from "./SentEdit";
 import SentRead from "./SentRead";
 import SentRead from "./SentRead";
 import Term from "./Term";
 import Term from "./Term";
+import Toggle from "./Toggle";
 import WbwSent from "./WbwSent";
 import WbwSent from "./WbwSent";
 import Wd from "./Wd";
 import Wd from "./Wd";
 
 
@@ -36,6 +37,8 @@ const Widget = ({ tpl, props, children }: IWidgetMdTpl) => {
       return <Article props={props ? props : ""} />;
       return <Article props={props ? props : ""} />;
     case "nissaya":
     case "nissaya":
       return <Nissaya props={props ? props : ""} />;
       return <Nissaya props={props ? props : ""} />;
+    case "toggle":
+      return <Toggle props={props ? props : undefined}>{children}</Toggle>;
     default:
     default:
       return <>未定义模版({tpl})</>;
       return <>未定义模版({tpl})</>;
   }
   }