|
@@ -8,6 +8,7 @@ import { useGenerateTransferKey } from '~/client/services/g2g-transfer';
|
|
|
import { apiv3Get, apiv3Post } from '~/client/util/apiv3-client';
|
|
import { apiv3Get, apiv3Post } from '~/client/util/apiv3-client';
|
|
|
import { toastError, toastSuccess } from '~/client/util/toastr';
|
|
import { toastError, toastSuccess } from '~/client/util/toastr';
|
|
|
import { G2G_PROGRESS_STATUS, type G2GProgress } from '~/interfaces/g2g-transfer';
|
|
import { G2G_PROGRESS_STATUS, type G2GProgress } from '~/interfaces/g2g-transfer';
|
|
|
|
|
+import { useGrowiDocumentationUrl } from '~/stores-universal/context';
|
|
|
import { useAdminSocket } from '~/stores/socket-io';
|
|
import { useAdminSocket } from '~/stores/socket-io';
|
|
|
|
|
|
|
|
import CustomCopyToClipBoard from '../Common/CustomCopyToClipBoard';
|
|
import CustomCopyToClipBoard from '../Common/CustomCopyToClipBoard';
|
|
@@ -123,6 +124,8 @@ const G2GDataTransfer = (): JSX.Element => {
|
|
|
}
|
|
}
|
|
|
}, [setTransferring, startTransferKey, selectedCollections, optionsMap]);
|
|
}, [setTransferring, startTransferKey, selectedCollections, optionsMap]);
|
|
|
|
|
|
|
|
|
|
+ const { data: documentationUrl } = useGrowiDocumentationUrl();
|
|
|
|
|
+
|
|
|
// File upload
|
|
// File upload
|
|
|
// const onChangeFileUploadTypeHandler = useCallback((e: ChangeEvent, type: string) => {
|
|
// const onChangeFileUploadTypeHandler = useCallback((e: ChangeEvent, type: string) => {
|
|
|
// setFileUploadType(type);
|
|
// setFileUploadType(type);
|
|
@@ -275,7 +278,13 @@ const G2GDataTransfer = (): JSX.Element => {
|
|
|
<div className="alert alert-warning mt-4">
|
|
<div className="alert alert-warning mt-4">
|
|
|
<p className="mb-1">{t('commons:g2g_data_transfer.transfer_key_limit')}</p>
|
|
<p className="mb-1">{t('commons:g2g_data_transfer.transfer_key_limit')}</p>
|
|
|
<p className="mb-1">{t('commons:g2g_data_transfer.once_transfer_key_used')}</p>
|
|
<p className="mb-1">{t('commons:g2g_data_transfer.once_transfer_key_used')}</p>
|
|
|
- <p className="mb-0">{t('commons:g2g_data_transfer.transfer_to_growi_cloud')}</p>
|
|
|
|
|
|
|
+ <p
|
|
|
|
|
+ className="mb-0"
|
|
|
|
|
+ // eslint-disable-next-line react/no-danger
|
|
|
|
|
+ dangerouslySetInnerHTML={{
|
|
|
|
|
+ __html: t('commons:g2g_data_transfer.transfer_to_growi_cloud', { documentationUrl: documentationUrl || 'docs.growi.org' }),
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|