mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix: remove page content
This commit is contained in:
parent
a01bbb2db9
commit
ad1b7bf8fc
@ -20,12 +20,12 @@ const StyledChipWrapper = styled(Box)(() => ({
|
||||
export const FeatureStatusCell = ({ feature }: IFeatureStatusCellProps) => {
|
||||
const enabled = feature.isEnabled
|
||||
? true
|
||||
: feature.strategies.result === false
|
||||
: feature.strategies?.result === false
|
||||
? false
|
||||
: 'unknown';
|
||||
const label = feature.isEnabled
|
||||
? 'True'
|
||||
: feature.strategies.result === false
|
||||
: feature.strategies?.result === false
|
||||
? 'False'
|
||||
: 'Unknown';
|
||||
return (
|
||||
|
@ -219,26 +219,34 @@ export const PlaygroundResultsTable = ({
|
||||
}, [loading, sortBy, searchValue]);
|
||||
|
||||
return (
|
||||
<PageContent
|
||||
isLoading={loading}
|
||||
header={
|
||||
<PageHeader
|
||||
titleElement={`Results (${
|
||||
rows.length < data.length
|
||||
? `${rows.length} of ${data.length}`
|
||||
: data.length
|
||||
})`}
|
||||
actions={
|
||||
<Search
|
||||
initialValue={searchValue}
|
||||
onChange={setSearchValue}
|
||||
hasFilters
|
||||
getSearchContext={getSearchContext}
|
||||
/>
|
||||
}
|
||||
<>
|
||||
<Box
|
||||
sx={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
mb: 3,
|
||||
}}
|
||||
>
|
||||
<Typography variant="subtitle1" sx={{ ml: 1 }}>
|
||||
{features !== undefined && !loading
|
||||
? `Results (${
|
||||
rows.length < data.length
|
||||
? `${rows.length} of ${data.length}`
|
||||
: data.length
|
||||
})`
|
||||
: 'Results'}
|
||||
</Typography>
|
||||
|
||||
<Search
|
||||
initialValue={searchValue}
|
||||
onChange={setSearchValue}
|
||||
hasFilters
|
||||
getSearchContext={getSearchContext}
|
||||
disabled={loading}
|
||||
containerStyles={{ marginLeft: '1rem', maxWidth: '400px' }}
|
||||
/>
|
||||
}
|
||||
>
|
||||
</Box>
|
||||
<ConditionallyRender
|
||||
condition={!loading && !data}
|
||||
show={() => (
|
||||
@ -284,6 +292,6 @@ export const PlaygroundResultsTable = ({
|
||||
</Box>
|
||||
)}
|
||||
/>
|
||||
</PageContent>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user