|
|
@@ -1,6 +1,7 @@
|
|
|
import { useState } from "react";
|
|
|
import { Modal } from "antd";
|
|
|
import Share, { EResType } from "./Share";
|
|
|
+import { useIntl } from "react-intl";
|
|
|
|
|
|
interface IWidget {
|
|
|
resId: string;
|
|
|
@@ -9,6 +10,7 @@ interface IWidget {
|
|
|
}
|
|
|
const ShareModalWidget = ({ resId, resType, trigger }: IWidget) => {
|
|
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
|
+ const intl = useIntl();
|
|
|
const showModal = () => {
|
|
|
setIsModalOpen(true);
|
|
|
};
|
|
|
@@ -27,7 +29,7 @@ const ShareModalWidget = ({ resId, resType, trigger }: IWidget) => {
|
|
|
<Modal
|
|
|
destroyOnClose={true}
|
|
|
width={700}
|
|
|
- title="协作"
|
|
|
+ title={intl.formatMessage({ id: "labels.collaboration" })}
|
|
|
open={isModalOpen}
|
|
|
onOk={handleOk}
|
|
|
onCancel={handleCancel}
|