Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <dxho@amazon.com>
  • Loading branch information
derek-ho committed Aug 9, 2024
1 parent 44983ad commit a09d643
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions public/apps/configuration/app-router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* permissions and limitations under the License.
*/

import { EuiBreadcrumb, EuiPage, EuiPageBody, EuiPageSideBar } from '@elastic/eui';
import { EuiPage, EuiPageBody, EuiPageSideBar } from '@elastic/eui';
import { flow, partial } from 'lodash';
import React, { createContext, useState } from 'react';
import { HashRouter as Router, Route, Switch, Redirect } from 'react-router-dom';
Expand All @@ -38,7 +38,7 @@ import { TenantList } from './panels/tenant-list/tenant-list';
import { UserList } from './panels/user-list';
import { Action, RouteItem, SubAction } from './types';
import { ResourceType } from '../../../common';
import { buildHashUrl, buildUrl } from './utils/url-builder';
import { buildUrl } from './utils/url-builder';
import { CrossPageToast } from './cross-page-toast';
import { getDataSourceFromUrl, LocalCluster } from '../../utils/datasource-utils';
import { getBreadcrumbs } from './utils/resource-utils';
Expand Down
1 change: 0 additions & 1 deletion public/apps/configuration/header/header-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export const PageHeader = (props: HeaderProps & DescriptionProps & ControlProps)
props.count
);
if (useNewUx) {

return (

Check warning on line 84 in public/apps/configuration/header/header-components.tsx

View check run for this annotation

Codecov / codecov/patch

public/apps/configuration/header/header-components.tsx#L84

Added line #L84 was not covered by tests
<>
{props.descriptionControls ? (
Expand Down
7 changes: 4 additions & 3 deletions public/apps/configuration/utils/resource-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import { EuiBreadcrumb } from '@elastic/eui';
import { ResourceType } from '../../../../common';
import { i18n } from '@osd/i18n';
import { buildHashUrl } from './url-builder';
import { ROUTE_MAP } from '../app-router';

Expand All @@ -39,7 +38,7 @@ export function getBreadcrumbs(
resourceType?: ResourceType,
pageTitle?: string,
subAction?: string,
count?: number,
count?: number
): EuiBreadcrumb[] {
const breadcrumbs: EuiBreadcrumb[] = includeSecurityBase
? [
Expand All @@ -58,7 +57,9 @@ export function getBreadcrumbs(
});
} else {
breadcrumbs.push({

Check warning on line 59 in public/apps/configuration/utils/resource-utils.tsx

View check run for this annotation

Codecov / codecov/patch

public/apps/configuration/utils/resource-utils.tsx#L59

Added line #L59 was not covered by tests
text: count ? `${ROUTE_MAP[resourceType].displayNameWithoutSecurityBase} (${count})` : ROUTE_MAP[resourceType].displayNameWithoutSecurityBase,
text: count
? `${ROUTE_MAP[resourceType].displayNameWithoutSecurityBase} (${count})`
: ROUTE_MAP[resourceType].displayNameWithoutSecurityBase,
href: buildHashUrl(resourceType),
});
}
Expand Down

0 comments on commit a09d643

Please sign in to comment.