mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
refactor(kube/apps): migrate stacks table to react [EE-4661] (#10091)
This commit is contained in:
parent
a5f60c64ef
commit
25d5e62f5c
31 changed files with 516 additions and 565 deletions
|
@ -28,15 +28,19 @@ export function DatatableHeader({
|
|||
return null;
|
||||
}
|
||||
|
||||
const searchBar = <SearchBar value={searchValue} onChange={onSearchChange} />;
|
||||
const tableActions = !!renderTableActions && (
|
||||
<Table.Actions>{renderTableActions()}</Table.Actions>
|
||||
);
|
||||
const tableTitleSettings = !!renderTableSettings && (
|
||||
<Table.TitleActions>{renderTableSettings()}</Table.TitleActions>
|
||||
);
|
||||
|
||||
return (
|
||||
<Table.Title label={title} icon={titleIcon} description={description}>
|
||||
<SearchBar value={searchValue} onChange={onSearchChange} />
|
||||
{renderTableActions && (
|
||||
<Table.Actions>{renderTableActions()}</Table.Actions>
|
||||
)}
|
||||
<Table.TitleActions>
|
||||
{!!renderTableSettings && renderTableSettings()}
|
||||
</Table.TitleActions>
|
||||
{searchBar}
|
||||
{tableActions}
|
||||
{tableTitleSettings}
|
||||
</Table.Title>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue