visuddhinanda 2 лет назад
Родитель
Сommit
fffcba576f

+ 15 - 0
dashboard/src/pages/library/nissaya/index.tsx

@@ -0,0 +1,15 @@
+import { Outlet } from "react-router-dom";
+import { Layout } from "antd";
+
+import FooterBar from "../../../components/library/FooterBar";
+
+const Widget = () => {
+  return (
+    <Layout>
+      <Outlet />
+      <FooterBar />
+    </Layout>
+  );
+};
+
+export default Widget;

+ 18 - 0
dashboard/src/pages/library/nissaya/show.tsx

@@ -0,0 +1,18 @@
+import { Col, Row } from "antd";
+import { useParams } from "react-router-dom";
+import NissayaCardWidget from "../../../components/general/NissayaCard";
+
+const Widget = () => {
+  const { ending } = useParams(); //url 参数
+  return (
+    <Row>
+      <Col flex={"auto"}></Col>
+      <Col flex={"960px"}>
+        <NissayaCardWidget text={ending} cache={false} />
+      </Col>
+      <Col flex={"auto"}></Col>
+    </Row>
+  );
+};
+
+export default Widget;