mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 23:30:05 +02:00
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,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
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user