diff --git a/_inc/client/components/forms/index.jsx b/_inc/client/components/forms/index.jsx index 28b9bcce35e38..85711af5e9e5c 100644 --- a/_inc/client/components/forms/index.jsx +++ b/_inc/client/components/forms/index.jsx @@ -9,31 +9,15 @@ import forOwn from 'lodash/forOwn'; import isEmpty from 'lodash/isEmpty'; import { translate as __ } from 'i18n-calypso'; import Button from 'components/button'; -import Gridicon from 'components/gridicon'; import SelectDropdown from 'components/select-dropdown'; -export const FormFieldset = React.createClass( { - - displayName: 'FormFieldset', - - render: function() { - return ( -
- ); - } -} ); +export const FormFieldset = props => { + return ( + + ); +}; export const FormLabel = React.createClass( { diff --git a/_inc/client/components/module-settings/style.scss b/_inc/client/components/module-settings/style.scss index 10fd7bde800a1..4d6051c8f0950 100644 --- a/_inc/client/components/module-settings/style.scss +++ b/_inc/client/components/module-settings/style.scss @@ -22,8 +22,11 @@ right: 17px; .jp-form-fieldset & { - top: -12px; - right:-7px; + top: 4px; + } + + .dops-info-popover { + white-space: nowrap; } } diff --git a/_inc/client/components/settings-group/index.jsx b/_inc/client/components/settings-group/index.jsx index ba58d9c0d4530..c421ab167788c 100644 --- a/_inc/client/components/settings-group/index.jsx +++ b/_inc/client/components/settings-group/index.jsx @@ -6,8 +6,8 @@ import { connect } from 'react-redux'; import { translate as __ } from 'i18n-calypso'; import Card from 'components/card'; import classNames from 'classnames'; -import Button from 'components/button'; -import Gridicon from 'components/gridicon'; +import InfoPopover from 'components/info-popover'; +import ExternalLink from 'components/external-link'; /** * Internal dependencies @@ -17,16 +17,11 @@ import { userCanManageModules, isSitePublic } from 'state/initial-state'; import { getSitePlan } from 'state/site'; export const SettingsGroup = props => { - let module = props.module, - support = props.support - ? props.support - : false, - // Disable in Dev Mode - disableInDevMode = props.disableInDevMode && props.isUnavailableInDevMode( module.module ); - - if ( ! support && module && '' !== module.learn_more_button ) { - support = module.learn_more_button; - } + const module = props.module, + disableInDevMode = props.disableInDevMode && props.isUnavailableInDevMode( module.module ), + support = ! props.support && module && '' !== module.learn_more_button + ? module.learn_more_button + : props.support; return (