From eeb4fde25133f02c7b4496df9f1c3691d5a7c995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Fri, 16 Jun 2017 23:03:35 +0100 Subject: [PATCH] fix(joyent-cp-frontend): fix prettier errors --- packages/cp-frontend/src/components/service/delete.js | 5 ++--- .../cp-frontend/src/components/services/quick-actions.js | 1 - packages/cp-frontend/src/containers/services/list.js | 7 ++++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/cp-frontend/src/components/service/delete.js b/packages/cp-frontend/src/components/service/delete.js index d781a48c..ca40b6b3 100644 --- a/packages/cp-frontend/src/components/service/delete.js +++ b/packages/cp-frontend/src/components/service/delete.js @@ -18,7 +18,7 @@ const propTypes = { onConfirmClick: PropTypes.func.isRequired }; -const ServiceDelete = ({ service, onCancelClick, onConfirmClick }) => ( +const ServiceDelete = ({ service, onCancelClick, onConfirmClick }) =>
Deleting a service:
{service.name} @@ -29,8 +29,7 @@ const ServiceDelete = ({ service, onCancelClick, onConfirmClick }) => ( -
-); + ; ServiceDelete.propTypes = propTypes; diff --git a/packages/cp-frontend/src/components/services/quick-actions.js b/packages/cp-frontend/src/components/services/quick-actions.js index 5f7a87bf..86707bbd 100644 --- a/packages/cp-frontend/src/components/services/quick-actions.js +++ b/packages/cp-frontend/src/components/services/quick-actions.js @@ -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; } diff --git a/packages/cp-frontend/src/containers/services/list.js b/packages/cp-frontend/src/containers/services/list.js index 35a1800e..0bb36caa 100644 --- a/packages/cp-frontend/src/containers/services/list.js +++ b/packages/cp-frontend/src/containers/services/list.js @@ -58,9 +58,10 @@ class ServiceList extends Component { const buttonRect = button.getBoundingClientRect(); const position = { - left: buttonRect.left - - listRect.left + - (buttonRect.right - buttonRect.left) / 2, + left: + buttonRect.left - + listRect.left + + (buttonRect.right - buttonRect.left) / 2, top: buttonRect.bottom - listRect.top };