mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: simplified empty archive list page
This commit is contained in:
parent
349106a2be
commit
7bfe7201c0
@ -283,14 +283,7 @@ export const ArchiveTable = ({
|
||||
/>
|
||||
}
|
||||
>
|
||||
<ConditionallyRender
|
||||
condition={!loading && data.length === 0}
|
||||
show={<TablePlaceholder />}
|
||||
elseShow={() => (
|
||||
<>
|
||||
<SearchHighlightProvider
|
||||
value={getSearchText(searchValue)}
|
||||
>
|
||||
<SearchHighlightProvider value={getSearchText(searchValue)}>
|
||||
<Table
|
||||
{...getTableProps()}
|
||||
rowHeight={rowHeight}
|
||||
@ -323,8 +316,7 @@ export const ArchiveTable = ({
|
||||
display: 'flex',
|
||||
top:
|
||||
index * rowHeight +
|
||||
theme.shape
|
||||
.tableRowHeightCompact,
|
||||
theme.shape.tableRowHeightCompact,
|
||||
}}
|
||||
className={classes.row}
|
||||
>
|
||||
@ -332,9 +324,7 @@ export const ArchiveTable = ({
|
||||
<TableCell
|
||||
{...cell.getCellProps({
|
||||
style: {
|
||||
flex: cell
|
||||
.column
|
||||
.minWidth
|
||||
flex: cell.column.minWidth
|
||||
? '1 0 auto'
|
||||
: undefined,
|
||||
},
|
||||
@ -351,9 +341,7 @@ export const ArchiveTable = ({
|
||||
</Table>
|
||||
</SearchHighlightProvider>
|
||||
<ConditionallyRender
|
||||
condition={
|
||||
rows.length === 0 && searchValue?.length > 0
|
||||
}
|
||||
condition={rows.length === 0 && searchValue?.length > 0}
|
||||
show={
|
||||
<TablePlaceholder>
|
||||
No feature toggles found matching “
|
||||
@ -361,8 +349,13 @@ export const ArchiveTable = ({
|
||||
</TablePlaceholder>
|
||||
}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
<ConditionallyRender
|
||||
condition={rows.length === 0 && searchValue?.length === 0}
|
||||
show={
|
||||
<TablePlaceholder>
|
||||
None of the feature toggles where archived yet.
|
||||
</TablePlaceholder>
|
||||
}
|
||||
/>
|
||||
</PageContent>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user