|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
import { withTranslation } from 'react-i18next';
|
|
|
|
|
|
-import ProgressBar from 'react-bootstrap/es/ProgressBar';
|
|
|
+import { Progress } from 'reactstrap';
|
|
|
|
|
|
import GrowiArchiveImportOption from '@commons/models/admin/growi-archive-import-option';
|
|
|
|
|
|
@@ -74,7 +74,7 @@ export default class ImportCollectionItem extends React.Component {
|
|
|
renderModeLabel(mode, isColorized = false) {
|
|
|
const attrMap = MODE_ATTR_MAP[mode];
|
|
|
const className = isColorized ? `text-${attrMap.color}` : '';
|
|
|
- return <span className={className}><i className={attrMap.icon}></i> {attrMap.label}</span>;
|
|
|
+ return <span className={`text-nowrap ${className}`}><i className={attrMap.icon}></i> {attrMap.label}</span>;
|
|
|
}
|
|
|
|
|
|
renderCheckbox() {
|
|
|
@@ -166,11 +166,11 @@ export default class ImportCollectionItem extends React.Component {
|
|
|
const total = insertedCount + modifiedCount + errorsCount;
|
|
|
|
|
|
return (
|
|
|
- <ProgressBar className="mb-0">
|
|
|
- <ProgressBar max={total} striped={isImporting} active={isImporting} now={insertedCount} bsStyle="info" />
|
|
|
- <ProgressBar max={total} striped={isImporting} active={isImporting} now={modifiedCount} bsStyle="success" />
|
|
|
- <ProgressBar max={total} striped={isImporting} active={isImporting} now={errorsCount} bsStyle="danger" />
|
|
|
- </ProgressBar>
|
|
|
+ <Progress multi className="mb-0">
|
|
|
+ <Progress bar max={total} color="info" animated={isImporting} value={insertedCount} />
|
|
|
+ <Progress bar max={total} color="success" animated={isImporting} value={modifiedCount} />
|
|
|
+ <Progress bar max={total} color="danger" animated={isImporting} value={errorsCount} />
|
|
|
+ </Progress>
|
|
|
);
|
|
|
}
|
|
|
|
|
|
@@ -201,11 +201,13 @@ export default class ImportCollectionItem extends React.Component {
|
|
|
} = this.props;
|
|
|
|
|
|
return (
|
|
|
- <div className="panel panel-default">
|
|
|
- <div className="panel-heading">
|
|
|
+ <div className="card">
|
|
|
+ <div className="card-header">
|
|
|
<div className="d-flex justify-content-between align-items-center">
|
|
|
{/* left */}
|
|
|
- {this.renderCheckbox()}
|
|
|
+ <div className="pl-4">
|
|
|
+ {this.renderCheckbox()}
|
|
|
+ </div>
|
|
|
{/* right */}
|
|
|
<span className="d-flex align-items-center">
|
|
|
{this.renderModeSelector()}
|
|
|
@@ -213,14 +215,12 @@ export default class ImportCollectionItem extends React.Component {
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- { isSelected && (
|
|
|
+ {isSelected && (
|
|
|
<>
|
|
|
{this.renderProgressBar()}
|
|
|
- <div className="panel-body">
|
|
|
- {this.renderBody()}
|
|
|
- </div>
|
|
|
+ <div className="card-body">{this.renderBody()}</div>
|
|
|
</>
|
|
|
- ) }
|
|
|
+ )}
|
|
|
</div>
|
|
|
);
|
|
|
}
|