Kaynağa Gözat

div ->Paragraph

visuddhinanda 2 yıl önce
ebeveyn
işleme
67fd03e857

+ 3 - 3
dashboard/src/components/dict/GrammarPop.tsx

@@ -6,7 +6,7 @@ import { get as getLang } from "../../locales";
 import { IGuideResponse } from "../api/Guide";
 import { IGuideResponse } from "../api/Guide";
 import Marked from "../general/Marked";
 import Marked from "../general/Marked";
 
 
-const { Link } = Typography;
+const { Link, Paragraph } = Typography;
 
 
 interface IWidget {
 interface IWidget {
   text: string;
   text: string;
@@ -39,9 +39,9 @@ const GrammarPopWidget = ({ text, gid }: IWidget) => {
   return (
   return (
     <Popover
     <Popover
       content={
       content={
-        <div style={{ maxWidth: 500, minWidth: 300, margin: 0 }}>
+        <Paragraph style={{ maxWidth: 500, minWidth: 300, margin: 0 }}>
           <Marked text={guide} />
           <Marked text={guide} />
-        </div>
+        </Paragraph>
       }
       }
       placement="bottom"
       placement="bottom"
     >
     >