+
+);
ModalErrorMessage.propTypes = {
title: PropTypes.string,
diff --git a/packages/cp-frontend/src/components/messaging/warning.js b/packages/cp-frontend/src/components/messaging/warning.js
index b332ac50..44134de0 100644
--- a/packages/cp-frontend/src/components/messaging/warning.js
+++ b/packages/cp-frontend/src/components/messaging/warning.js
@@ -2,8 +2,9 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Message } from 'joyent-ui-toolkit';
-const WarningMessage = ({ title, message }) =>
-
;
+const WarningMessage = ({ title, message }) => (
+
+);
WarningMessage.propTypes = {
title: PropTypes.string,
diff --git a/packages/cp-frontend/src/components/navigation/breadcrumb.js b/packages/cp-frontend/src/components/navigation/breadcrumb.js
index e5f2807f..4781fcab 100644
--- a/packages/cp-frontend/src/components/navigation/breadcrumb.js
+++ b/packages/cp-frontend/src/components/navigation/breadcrumb.js
@@ -24,27 +24,22 @@ const BreadcrumbContainer = styled.div`
const getBreadcrumbItems = (...links) =>
forceArray(links).map(({ pathname, name }, i) => {
const item =
- i + 1 >= links.length
- ? name
- :
- {name}
- ;
+ i + 1 >= links.length ? (
+ name
+ ) : (
+
{name}
+ );
- return (
-
- {item}
-
- );
+ return
{item};
});
-const NavBreadcrumb = ({ links = [] }) =>
+const NavBreadcrumb = ({ links = [] }) => (
-
- {getBreadcrumbItems(...links)}
-
+ {getBreadcrumbItems(...links)}
- ;
+
+);
NavBreadcrumb.propTypes = {
links: PropTypes.arrayOf(
diff --git a/packages/cp-frontend/src/components/navigation/header.js b/packages/cp-frontend/src/components/navigation/header.js
index fdf81a7e..ef46d6d4 100644
--- a/packages/cp-frontend/src/components/navigation/header.js
+++ b/packages/cp-frontend/src/components/navigation/header.js
@@ -12,20 +12,17 @@ const StyledLogo = Img.extend`
height: ${remcalc(25)};
`;
-const NavHeader = ({ datacenter, username }) =>
+const NavHeader = ({ datacenter, username }) => (
-
- {datacenter}
-
-
- {username}
-
- ;
+
{datacenter}
+
{username}
+
+);
NavHeader.propTypes = {
datacenter: PropTypes.string,
diff --git a/packages/cp-frontend/src/components/navigation/menu.js b/packages/cp-frontend/src/components/navigation/menu.js
index f4e8e540..27bed5b0 100644
--- a/packages/cp-frontend/src/components/navigation/menu.js
+++ b/packages/cp-frontend/src/components/navigation/menu.js
@@ -11,20 +11,19 @@ import {
} from 'joyent-ui-toolkit';
const getMenuItems = (...links) =>
- forceArray(links).map(({ pathname, name }) =>
+ forceArray(links).map(({ pathname, name }) => (
{name}
- );
+ ));
-const Menu = ({ links = [] }) =>
+const Menu = ({ links = [] }) => (
-
- {getMenuItems(...links)}
-
- ;
+
{getMenuItems(...links)}
+
+);
Menu.propTypes = {
links: PropTypes.arrayOf(
diff --git a/packages/cp-frontend/src/components/navigation/not-found.js b/packages/cp-frontend/src/components/navigation/not-found.js
index 261e6a3c..ecb81d3a 100644
--- a/packages/cp-frontend/src/components/navigation/not-found.js
+++ b/packages/cp-frontend/src/components/navigation/not-found.js
@@ -39,6 +39,6 @@ NotFound.propTypes = {
message: PropTypes.string,
link: PropTypes.string,
to: PropTypes.string
-}
+};
export default NotFound;
diff --git a/packages/cp-frontend/src/components/service/delete.js b/packages/cp-frontend/src/components/service/delete.js
index ed54829a..1fc75858 100644
--- a/packages/cp-frontend/src/components/service/delete.js
+++ b/packages/cp-frontend/src/components/service/delete.js
@@ -6,7 +6,7 @@ const ServiceDelete = ({
service,
onCancelClick = () => {},
onConfirmClick = () => {}
-}) =>
+}) => (
Deleting a service:
{service.name}
@@ -19,7 +19,8 @@ const ServiceDelete = ({
Cancel
-
;
+
+);
ServiceDelete.propTypes = {
service: PropTypes.object.isRequired,
diff --git a/packages/cp-frontend/src/components/service/index.js b/packages/cp-frontend/src/components/service/index.js
index c0aed185..030c1f8f 100644
--- a/packages/cp-frontend/src/components/service/index.js
+++ b/packages/cp-frontend/src/components/service/index.js
@@ -1,3 +1,3 @@
export { default as ServiceScale } from './scale';
export { default as ServiceDelete } from './delete';
-export { default as ServiceMetrics} from './metrics';
+export { default as ServiceMetrics } from './metrics';
diff --git a/packages/cp-frontend/src/components/service/metrics.js b/packages/cp-frontend/src/components/service/metrics.js
index e9ee275f..3b3e2a6d 100644
--- a/packages/cp-frontend/src/components/service/metrics.js
+++ b/packages/cp-frontend/src/components/service/metrics.js
@@ -2,13 +2,9 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { MetricGraph } from 'joyent-ui-toolkit';
-const ServiceMetrics = ({
- metricsData,
- graphDurationSeconds
-}) => {
-
+const ServiceMetrics = ({ metricsData, graphDurationSeconds }) => {
// metricsData should prob be an array rather than an object
- const metricGraphs = Object.keys(metricsData).map((key) => (
+ const metricGraphs = Object.keys(metricsData).map(key => (
// should also have a header, w metric name and number of instances (omit everything else from design for copilot)