From 8a69c7ea7b85ef5203fa644edaefd8e2268b3e99 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 24 Apr 2020 09:09:08 +0000 Subject: [PATCH] Restyled by prettier --- client/app/pages/alerts/AlertsList.jsx | 4 ++-- client/app/pages/dashboards/DashboardList.jsx | 10 +++++----- .../dashboards/components/DashboardHeader.jsx | 8 ++++---- client/app/pages/queries-list/QueriesList.jsx | 14 +++++++------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/client/app/pages/alerts/AlertsList.jsx b/client/app/pages/alerts/AlertsList.jsx index 5dea765bc6..c8217b4764 100644 --- a/client/app/pages/alerts/AlertsList.jsx +++ b/client/app/pages/alerts/AlertsList.jsx @@ -94,7 +94,7 @@ class AlertsList extends React.Component { totalCount={controller.totalItemsCount} itemsPerPage={controller.itemsPerPage} page={controller.page} - onChange={page => controller.updatePagination({ page })} + onChange={(page) => controller.updatePagination({ page })} /> )} @@ -123,5 +123,5 @@ const AlertsListPage = itemsList( export default routeWithUserSession({ path: "/alerts", title: "Alerts", - render: pageProps => , + render: (pageProps) => , }); diff --git a/client/app/pages/dashboards/DashboardList.jsx b/client/app/pages/dashboards/DashboardList.jsx index 16186bf4c3..4253b0657a 100644 --- a/client/app/pages/dashboards/DashboardList.jsx +++ b/client/app/pages/dashboards/DashboardList.jsx @@ -89,7 +89,7 @@ class DashboardList extends React.Component { className="m-b-10" options={controller.pageSizeOptions} value={controller.itemsPerPage} - onChange={itemsPerPage => controller.updatePagination({ itemsPerPage })} + onChange={(itemsPerPage) => controller.updatePagination({ itemsPerPage })} /> @@ -114,7 +114,7 @@ class DashboardList extends React.Component { totalCount={controller.totalItemsCount} itemsPerPage={controller.itemsPerPage} page={controller.page} - onChange={page => controller.updatePagination({ page })} + onChange={(page) => controller.updatePagination({ page })} /> )} @@ -141,7 +141,7 @@ const DashboardListPage = itemsList( }[currentPage]; }, getItemProcessor() { - return item => new Dashboard(item); + return (item) => new Dashboard(item); }, }), () => new UrlStateStorage({ orderByField: "created_at", orderByReverse: true }) @@ -151,11 +151,11 @@ export default [ routeWithUserSession({ path: "/dashboards", title: "Dashboards", - render: pageProps => , + render: (pageProps) => , }), routeWithUserSession({ path: "/dashboards/favorites", title: "Favorite Dashboards", - render: pageProps => , + render: (pageProps) => , }), ]; diff --git a/client/app/pages/dashboards/components/DashboardHeader.jsx b/client/app/pages/dashboards/components/DashboardHeader.jsx index 95b9ca000a..4a1c0bac20 100644 --- a/client/app/pages/dashboards/components/DashboardHeader.jsx +++ b/client/app/pages/dashboards/components/DashboardHeader.jsx @@ -20,7 +20,7 @@ import { DashboardStatusEnum } from "../hooks/useDashboard"; import "./DashboardHeader.less"; function getDashboardTags() { - return getTags("api/dashboards/tags").then(tags => map(tags, t => t.name)); + return getTags("api/dashboards/tags").then((tags) => map(tags, (t) => t.name)); } function buttonType(value) { @@ -36,7 +36,7 @@ function DashboardPageTitle({ dashboardOptions }) {

updateDashboard({ name })} + onDone={(name) => updateDashboard({ name })} value={dashboard.name} ignoreBlanks /> @@ -51,7 +51,7 @@ function DashboardPageTitle({ dashboardOptions }) { isArchived={dashboard.is_archived} canEdit={canEditDashboard} getAvailableTags={getDashboardTags} - onEdit={tags => updateDashboard({ tags })} + onEdit={(tags) => updateDashboard({ tags })} /> ); @@ -87,7 +87,7 @@ function RefreshButton({ dashboardOptions }) { placement="bottomRight" overlay={ - {refreshRateOptions.map(option => ( + {refreshRateOptions.map((option) => ( {durationHumanize(option)} diff --git a/client/app/pages/queries-list/QueriesList.jsx b/client/app/pages/queries-list/QueriesList.jsx index 50c47a60cb..0ec922455c 100644 --- a/client/app/pages/queries-list/QueriesList.jsx +++ b/client/app/pages/queries-list/QueriesList.jsx @@ -105,7 +105,7 @@ class QueriesList extends React.Component { className="m-b-10" options={controller.pageSizeOptions} value={controller.itemsPerPage} - onChange={itemsPerPage => controller.updatePagination({ itemsPerPage })} + onChange={(itemsPerPage) => controller.updatePagination({ itemsPerPage })} /> @@ -130,7 +130,7 @@ class QueriesList extends React.Component { totalCount={controller.totalItemsCount} itemsPerPage={controller.itemsPerPage} page={controller.page} - onChange={page => controller.updatePagination({ page })} + onChange={(page) => controller.updatePagination({ page })} /> )} @@ -155,7 +155,7 @@ const QueriesListPage = itemsList( }[currentPage]; }, getItemProcessor() { - return item => new Query(item); + return (item) => new Query(item); }, }), () => new UrlStateStorage({ orderByField: "created_at", orderByReverse: true }) @@ -165,21 +165,21 @@ export default [ routeWithUserSession({ path: "/queries", title: "Queries", - render: pageProps => , + render: (pageProps) => , }), routeWithUserSession({ path: "/queries/favorites", title: "Favorite Queries", - render: pageProps => , + render: (pageProps) => , }), routeWithUserSession({ path: "/queries/archive", title: "Archived Queries", - render: pageProps => , + render: (pageProps) => , }), routeWithUserSession({ path: "/queries/my", title: "My Queries", - render: pageProps => , + render: (pageProps) => , }), ];