Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Huan-Cheng Chang <changhc84@gmail.com>
  • Loading branch information
changhc committed Feb 3, 2021
1 parent 5fb934c commit 8bc0b4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/app/shared/components/graph/graph-panel.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import * as React from 'react';
import {useEffect} from 'react';
import {TextInput} from '../../../shared/components/text-input';
import {ScopedLocalStorage} from '../../scoped-local-storage';
import {FilterDropDown} from '../filter-drop-down';
import {Icon} from '../icon';
import {GraphIcon} from './icon';
import {formatLabel} from './label';
import {layout} from './layout';
import {Graph, Node} from './types';
import {TextInput} from '../../../shared/components/text-input';
import { node } from 'prop-types';

require('./graph-panel.scss');

Expand Down Expand Up @@ -72,7 +71,8 @@ export const GraphPanel = (props: Props) => {
return (
nodeGenres[label.genre] &&
(!nodeClassNames || Object.entries(nodeClassNames).find(([className, checked]) => checked && (label.classNames || '').split(' ').includes(className))) &&
(!nodeTags || Object.entries(nodeTags).find(([tag, checked]) => !label.tags || (checked && label.tags.has(tag)))) && props.graph.nodes.get(id).label.includes(nodeSearchKeyword)
(!nodeTags || Object.entries(nodeTags).find(([tag, checked]) => !label.tags || (checked && label.tags.has(tag)))) &&
props.graph.nodes.get(id).label.includes(nodeSearchKeyword)
);
};

Expand Down Expand Up @@ -132,7 +132,7 @@ export const GraphPanel = (props: Props) => {
</a>
{props.options}
<div className='node-search-bar'>
<TextInput value={nodeSearchKeyword} onChange={(e) => setNodeSearchKeyword(e)} placeholder={'Search'} />
<TextInput value={nodeSearchKeyword} onChange={v => setNodeSearchKeyword(v)} placeholder={'Search'} />
</div>
</div>
)}
Expand Down

0 comments on commit 8bc0b4f

Please sign in to comment.