fix(joyent-cp-frontend): fix prettier errors

This commit is contained in:
Sérgio Ramos 2017-06-16 23:03:35 +01:00
parent ce3f63eaae
commit eeb4fde251
3 changed files with 6 additions and 7 deletions

View File

@ -18,7 +18,7 @@ const propTypes = {
onConfirmClick: PropTypes.func.isRequired
};
const ServiceDelete = ({ service, onCancelClick, onConfirmClick }) => (
const ServiceDelete = ({ service, onCancelClick, onConfirmClick }) =>
<div>
<ModalHeading>
Deleting a service: <br /> {service.name}
@ -29,8 +29,7 @@ const ServiceDelete = ({ service, onCancelClick, onConfirmClick }) => (
</ModalText>
<Button onClick={onCancelClick} secondary>Cancel</Button>
<Button onClick={onConfirmClick}>Delete service</Button>
</div>
);
</div>;
ServiceDelete.propTypes = propTypes;

View File

@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
import { Tooltip, TooltipButton, TooltipDivider } from 'joyent-ui-toolkit';
const ServicesQuickActions = ({ show, position, service, url, onBlur }) => {
if (!show) {
return null;
}

View File

@ -58,7 +58,8 @@ class ServiceList extends Component {
const buttonRect = button.getBoundingClientRect();
const position = {
left: buttonRect.left -
left:
buttonRect.left -
listRect.left +
(buttonRect.right - buttonRect.left) / 2,
top: buttonRect.bottom - listRect.top