visuddhinanda 1 год назад
Родитель
Сommit
e6203363d8
1 измененных файлов с 26 добавлено и 0 удалено
  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;