|
@@ -1,10 +1,9 @@
|
|
|
import React from 'react';
|
|
import React from 'react';
|
|
|
-import PropTypes from 'prop-types';
|
|
|
|
|
-
|
|
|
|
|
-import { Modal, ModalHeader, ModalBody } from 'reactstrap';
|
|
|
|
|
|
|
|
|
|
-import { withTranslation } from 'react-i18next';
|
|
|
|
|
import { pathUtils } from '@growi/core';
|
|
import { pathUtils } from '@growi/core';
|
|
|
|
|
+import PropTypes from 'prop-types';
|
|
|
|
|
+import { withTranslation } from 'react-i18next';
|
|
|
|
|
+import { Modal, ModalHeader, ModalBody } from 'reactstrap';
|
|
|
import urljoin from 'url-join';
|
|
import urljoin from 'url-join';
|
|
|
|
|
|
|
|
|
|
|
|
@@ -30,6 +29,7 @@ const CreateTemplateModal = (props) => {
|
|
|
</div>
|
|
</div>
|
|
|
<div className="card-footer text-center">
|
|
<div className="card-footer text-center">
|
|
|
<a
|
|
<a
|
|
|
|
|
+ data-testid={`template-button-${target}`}
|
|
|
href={generateUrl(label)}
|
|
href={generateUrl(label)}
|
|
|
className="btn btn-sm btn-primary"
|
|
className="btn btn-sm btn-primary"
|
|
|
id={`template-button-${target}`}
|
|
id={`template-button-${target}`}
|
|
@@ -42,7 +42,7 @@ const CreateTemplateModal = (props) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <Modal isOpen={props.isOpen} toggle={props.onClose} className="grw-create-page">
|
|
|
|
|
|
|
+ <Modal isOpen={props.isOpen} toggle={props.onClose} data-testid="page-template-modal" className="grw-create-page">
|
|
|
<ModalHeader tag="h4" toggle={props.onClose} className="bg-primary text-light">
|
|
<ModalHeader tag="h4" toggle={props.onClose} className="bg-primary text-light">
|
|
|
{t('template.modal_label.Create/Edit Template Page')}
|
|
{t('template.modal_label.Create/Edit Template Page')}
|
|
|
</ModalHeader>
|
|
</ModalHeader>
|