Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Dec 6, 2021
1 parent a296f6b commit 4f0ee14
Show file tree
Hide file tree
Showing 17 changed files with 717 additions and 402 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
"markdown-it": "^10.0.0",
"md5": "^2.1.0",
"mdast-util-to-hast": "10.0.1",
"memoize-one": "^5.0.0",
"memoize-one": "^6.0.0",
"mime": "^2.4.4",
"mime-types": "^2.1.27",
"mini-css-extract-plugin": "1.1.0",
Expand Down Expand Up @@ -578,7 +578,6 @@
"@types/lz-string": "^1.3.34",
"@types/markdown-it": "^0.0.7",
"@types/md5": "^2.2.0",
"@types/memoize-one": "^4.1.0",
"@types/mime": "^2.0.1",
"@types/mime-types": "^2.1.0",
"@types/minimatch": "^2.0.29",
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/data/public/ui/filter_bar/filter_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ interface Props {
timeRangeForSuggestionsOverride?: boolean;
}

function FilterBarUI(props: Props) {
const FilterBarUI = React.memo(function FilterBarUI(props: Props) {
const groupRef = useRef<HTMLDivElement>(null);
const [isAddFilterPopoverOpen, setIsAddFilterPopoverOpen] = useState(false);
const kibana = useKibana<IDataPluginServices>();
Expand Down Expand Up @@ -226,6 +226,6 @@ function FilterBarUI(props: Props) {
</EuiFlexItem>
</EuiFlexGroup>
);
}
});

export const FilterBar = injectI18n(FilterBarUI);
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface QueryLanguageSwitcherProps {
nonKqlModeHelpText?: string;
}

export function QueryLanguageSwitcher({
export const QueryLanguageSwitcher = React.memo(function QueryLanguageSwitcher({
language,
anchorPosition,
onSelectLanguage,
Expand Down Expand Up @@ -148,4 +148,4 @@ export function QueryLanguageSwitcher({
</div>
</EuiPopover>
);
}
});
Loading

0 comments on commit 4f0ee14

Please sign in to comment.