Skip to content

Commit 92635c1

Browse files
committed
Add table meta to bulk actions.
1 parent c971cc1 commit 92635c1

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/components/tableV2/features/globalControls.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,19 @@ const GlobalControls = ({
1010
handleSearch,
1111
searchPlaceholder = "Search",
1212
searchValue,
13+
tableMeta,
1314
}) => {
1415
const wordsCount = searchValue?.split(" ").filter(x => !!x).length
1516
return (
16-
<Flex width="100%" zIndex={10} background="mainBackground" padding={[0, 0, 4]}>
17+
<Flex
18+
width="100%"
19+
zIndex={10}
20+
background="mainBackground"
21+
padding={[0, 0, 4]}
22+
{...tableMeta?.bulkActionsStyles}
23+
>
1724
{handleSearch && (
18-
<Flex width={{ max: 100, base: "40%" }}>
25+
<Flex width={{ max: 100, base: "40%" }} {...tableMeta?.searchContainerStyles}>
1926
<SearchInput
2027
data-testid="table-global-search-filter"
2128
data-ga={`${dataGa}::search-${wordsCount}-words::table-filter`}
@@ -26,6 +33,7 @@ const GlobalControls = ({
2633
handleSearch(e.target.value)
2734
})}
2835
placeholder={searchPlaceholder}
36+
{...tableMeta?.searchStyles}
2937
/>
3038
</Flex>
3139
)}

src/components/tableV2/netdataTable.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ const NetdataTable = ({
186186
dataGa={dataGa}
187187
handleSearch={onGlobalSearchChange ? onGlobalFilterChange : null}
188188
searchValue={globalFilter}
189+
tableMeta={tableMeta}
189190
/>
190191
) : null}
191192
<Flex column ref={scrollParentRef} overflow="auto" width="100%" height="100%">

0 commit comments

Comments
 (0)