1
0
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:
Alex Andreev 2020-11-04 07:34:04 +03:00
parent 4e1b901845
commit cc8902c32b
2 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,7 @@ describe("search store tests", () => {
expect(searchStore.occurrences).toEqual([]); expect(searchStore.occurrences).toEqual([]);
}) })
it("doesn't brake if no text provided", () => { it("doesn't break if no text provided", () => {
searchStore.onSearch(null, "replica"); searchStore.onSearch(null, "replica");
expect(searchStore.occurrences).toEqual([]); expect(searchStore.occurrences).toEqual([]);

View File

@ -175,7 +175,6 @@ export class PodLogs extends React.Component<Props> {
* @returns A react element with a row itself * @returns A react element with a row itself
*/ */
getLogRow = (rowIndex: number) => { getLogRow = (rowIndex: number) => {
const isSeparator = this.logs[rowIndex] === "---newlogs---"; // TODO: Use constant separator
const { searchQuery, isActiveOverlay } = searchStore; const { searchQuery, isActiveOverlay } = searchStore;
const item = this.logs[rowIndex]; const item = this.logs[rowIndex];
const contents: React.ReactElement[] = []; const contents: React.ReactElement[] = [];
@ -200,7 +199,7 @@ export class PodLogs extends React.Component<Props> {
}) })
} }
return ( return (
<div className={cssNames("LogRow", { separator: isSeparator })}> <div className={cssNames("LogRow")}>
{contents.length > 1 ? contents : item} {contents.length > 1 ? contents : item}
</div> </div>
); );