-
- {title}
- {children}
-
- {subtitle && (
-
- {subtitle}
-
- )}
+const PageTitle = ({
+ title, subtitle, children, containerClass,
+}) =>
+
+
{title}
+ {children}
-);
+ {subtitle &&
+ {subtitle}
+
}
+
;
PageTitle.propTypes = {
title: PropTypes.string.isRequired,
subtitle: PropTypes.string,
children: PropTypes.node,
+ containerClass: PropTypes.string,
};
export default PageTitle;
diff --git a/client/src/helpers/form.js b/client/src/helpers/form.js
index 85934a5e..bf6db7f6 100644
--- a/client/src/helpers/form.js
+++ b/client/src/helpers/form.js
@@ -1,7 +1,6 @@
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { Trans } from 'react-i18next';
-import classNames from 'classnames';
import { createOnBlurHandler } from './helpers';
import { R_UNIX_ABSOLUTE_PATH, R_WIN_ABSOLUTE_PATH } from './constants';
@@ -203,13 +202,10 @@ export const renderSelectField = ({
label,
}) => {
const showWarning = touched && error;
- const selectClass = classNames('form-control custom-select', {
- 'select--no-warning': !showWarning,
- });
return <>
{label &&
}
-
+
{showWarning
&&
{error}}
>;