visuddhinanda hai 1 ano
pai
achega
e6203363d8
Modificáronse 1 ficheiros con 26 adicións e 0 borrados
  1. 26 0
      dashboard/src/pages/studio/tags/edit.tsx

+ 26 - 0
dashboard/src/pages/studio/tags/edit.tsx

@@ -0,0 +1,26 @@
+import { useIntl } from "react-intl";
+import { useParams } from "react-router-dom";
+import { Card } from "antd";
+
+import GoBack from "../../../components/studio/GoBack";
+import TagCreate from "../../../components/tag/TagCreate";
+
+const Widget = () => {
+  const intl = useIntl();
+  const { studioname, tagId } = useParams(); //url 参数
+
+  return (
+    <Card
+      title={
+        <GoBack
+          to={`/studio/${studioname}/tags/list`}
+          title={intl.formatMessage({ id: "labels.tag.list" })}
+        />
+      }
+    >
+      <TagCreate studio={studioname} tagId={tagId} />
+    </Card>
+  );
+};
+
+export default Widget;