fix(joyent-cp-frontend): fix prettier errors
This commit is contained in:
parent
ce3f63eaae
commit
eeb4fde251
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user