visuddhinanda 3 years ago
parent
commit
68691a6fc7

+ 14 - 0
dashboard/src/components/auth/ToLibaray.tsx

@@ -0,0 +1,14 @@
+import { Button } from "antd";
+import { Link } from "react-router-dom";
+
+const Widget = () => {
+	return (
+		<>
+			<Link to="/palicanon/list">
+				<Button type="primary">藏经阁</Button>
+			</Link>
+		</>
+	);
+};
+
+export default Widget;

+ 17 - 0
dashboard/src/components/auth/ToStudio.tsx

@@ -0,0 +1,17 @@
+import { Button } from "antd";
+import { useState } from "react";
+import { Link } from "react-router-dom";
+
+const Widget = () => {
+	const [userName, setUserName] = useState("Kosalla_China");
+
+	return (
+		<>
+			<Link to={`/studio/${userName}/home`}>
+				<Button type="primary">藏经阁</Button>
+			</Link>
+		</>
+	);
+};
+
+export default Widget;