Skip to content

Commit

Permalink
fixed linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Mar 31, 2022
1 parent 2d65773 commit 8845913
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import React, { useMemo } from 'react';
import styled from 'styled-components';
import { EuiPanel } from '@elastic/eui';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { LandingPageComponent } from './index';

describe('LandingPageComponent component', () => {
it('renders page properly', () => {
const EmptyComponent = shallow(<LandingPageComponent/>);
const EmptyComponent = shallow(<LandingPageComponent />);
expect(EmptyComponent).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export const useShowPagesWithEmptyView = () => {
const [{ pageName }] = useRouteSpy();
const { indicesExist } = useSourcererDataView();

const shouldShowEmptyState = (isPageNameWithEmptyView(pageName) && !indicesExist) || pageName === SecurityPageName.landing;
const shouldShowEmptyState =
(isPageNameWithEmptyView(pageName) && !indicesExist) || pageName === SecurityPageName.landing;

const [showEmptyState, setShowEmptyState] = useState(shouldShowEmptyState);

Expand Down

0 comments on commit 8845913

Please sign in to comment.