Fix table header

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2023-04-11 15:10:26 +03:00
1 parent 03632626ce
commit 2ada830418
1 file changed
+3 -2
@@ -27,7 +27,8 @@ const NonInjectedMutatingWebhookConfigurations = observer((props: Dependencies)
<SiblingsInTabLayout> <SiblingsInTabLayout>
<KubeObjectListLayout <KubeObjectListLayout
isConfigurable isConfigurable
customizeHeader={({ searchProps }) => ({ customizeHeader={({ searchProps, ...rest }) => ({
...rest,
searchProps: { searchProps: {
...searchProps, ...searchProps,
placeholder: "Search...", placeholder: "Search...",
@@ -45,7 +46,7 @@ const NonInjectedMutatingWebhookConfigurations = observer((props: Dependencies)
item => item.getSearchFields(), item => item.getSearchFields(),
item => item.getLabels(), item => item.getLabels(),
]} ]}
renderHeaderTitle="Mutating Webhook Configurations" renderHeaderTitle="Mutating Webhook Configs"
renderTableHeader={[ renderTableHeader={[
{ title: "Name", className: "name", sortBy: columnId.name, id: columnId.name }, { title: "Name", className: "name", sortBy: columnId.name, id: columnId.name },
{ {