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
|
onConfirmClick: PropTypes.func.isRequired
|
||||||
};
|
};
|
||||||
|
|
||||||
const ServiceDelete = ({ service, onCancelClick, onConfirmClick }) => (
|
const ServiceDelete = ({ service, onCancelClick, onConfirmClick }) =>
|
||||||
<div>
|
<div>
|
||||||
<ModalHeading>
|
<ModalHeading>
|
||||||
Deleting a service: <br /> {service.name}
|
Deleting a service: <br /> {service.name}
|
||||||
@ -29,8 +29,7 @@ const ServiceDelete = ({ service, onCancelClick, onConfirmClick }) => (
|
|||||||
</ModalText>
|
</ModalText>
|
||||||
<Button onClick={onCancelClick} secondary>Cancel</Button>
|
<Button onClick={onCancelClick} secondary>Cancel</Button>
|
||||||
<Button onClick={onConfirmClick}>Delete service</Button>
|
<Button onClick={onConfirmClick}>Delete service</Button>
|
||||||
</div>
|
</div>;
|
||||||
);
|
|
||||||
|
|
||||||
ServiceDelete.propTypes = propTypes;
|
ServiceDelete.propTypes = propTypes;
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
|
|||||||
import { Tooltip, TooltipButton, TooltipDivider } from 'joyent-ui-toolkit';
|
import { Tooltip, TooltipButton, TooltipDivider } from 'joyent-ui-toolkit';
|
||||||
|
|
||||||
const ServicesQuickActions = ({ show, position, service, url, onBlur }) => {
|
const ServicesQuickActions = ({ show, position, service, url, onBlur }) => {
|
||||||
|
|
||||||
if (!show) {
|
if (!show) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -58,9 +58,10 @@ class ServiceList extends Component {
|
|||||||
const buttonRect = button.getBoundingClientRect();
|
const buttonRect = button.getBoundingClientRect();
|
||||||
|
|
||||||
const position = {
|
const position = {
|
||||||
left: buttonRect.left -
|
left:
|
||||||
listRect.left +
|
buttonRect.left -
|
||||||
(buttonRect.right - buttonRect.left) / 2,
|
listRect.left +
|
||||||
|
(buttonRect.right - buttonRect.left) / 2,
|
||||||
top: buttonRect.bottom - listRect.top
|
top: buttonRect.bottom - listRect.top
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user