mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Removing separator sketches
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
4e1b901845
commit
cc8902c32b
@ -22,7 +22,7 @@ describe("search store tests", () => {
|
||||
expect(searchStore.occurrences).toEqual([]);
|
||||
})
|
||||
|
||||
it("doesn't brake if no text provided", () => {
|
||||
it("doesn't break if no text provided", () => {
|
||||
searchStore.onSearch(null, "replica");
|
||||
expect(searchStore.occurrences).toEqual([]);
|
||||
|
||||
|
||||
@ -175,7 +175,6 @@ export class PodLogs extends React.Component<Props> {
|
||||
* @returns A react element with a row itself
|
||||
*/
|
||||
getLogRow = (rowIndex: number) => {
|
||||
const isSeparator = this.logs[rowIndex] === "---newlogs---"; // TODO: Use constant separator
|
||||
const { searchQuery, isActiveOverlay } = searchStore;
|
||||
const item = this.logs[rowIndex];
|
||||
const contents: React.ReactElement[] = [];
|
||||
@ -200,7 +199,7 @@ export class PodLogs extends React.Component<Props> {
|
||||
})
|
||||
}
|
||||
return (
|
||||
<div className={cssNames("LogRow", { separator: isSeparator })}>
|
||||
<div className={cssNames("LogRow")}>
|
||||
{contents.length > 1 ? contents : item}
|
||||
</div>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user