Bläddra i källkod

:art: code format

visuddhinanda 3 år sedan
förälder
incheckning
07b0b3b3af
1 ändrade filer med 10 tillägg och 10 borttagningar
  1. 10 10
      dashboard/src/components/template/Wd.tsx

+ 10 - 10
dashboard/src/components/template/Wd.tsx

@@ -1,23 +1,23 @@
 import { Popover } from "antd";
 
 interface IWidgetWdCtl {
-	text?: string;
+  text?: string;
 }
 const WdCtl = ({ text }: IWidgetWdCtl) => {
-	const noteCard = "note";
-	return (
-		<Popover content={noteCard} placement="bottom">
-			{text}{" "}
-		</Popover>
-	);
+  const noteCard = "note";
+  return (
+    <Popover content={noteCard} placement="bottom">
+      {text}{" "}
+    </Popover>
+  );
 };
 
 interface IWidgetTerm {
-	props: string;
+  props: string;
 }
 const Widget = ({ props }: IWidgetTerm) => {
-	const prop = JSON.parse(decodeURI(props)) as IWidgetWdCtl;
-	return <WdCtl {...prop} />;
+  const prop = JSON.parse(atob(props)) as IWidgetWdCtl;
+  return <WdCtl {...prop} />;
 };
 
 export default Widget;