fix conflicts

This commit is contained in:
Mark Kaylor 2021-09-13 09:06:48 +02:00
parent 60f1700295
commit 958bba7d19

View File

@ -132,12 +132,7 @@ const RoleListPage = () => {
</CheckPermissions> </CheckPermissions>
} }
/> />
<ContentLayout>
<ContentLayout
canRead={canRead}
shouldShowEmptyState={roles && !roles.length}
isLoading={isLoading || isLoadingForPermissions}
>
<Box paddingBottom={4}> <Box paddingBottom={4}>
<Row style={{ flexWrap: 'wrap' }}> <Row style={{ flexWrap: 'wrap' }}>
<Search /> <Search />
@ -145,7 +140,7 @@ const RoleListPage = () => {
</Box> </Box>
{!canRead && <NoPermissions />} {!canRead && <NoPermissions />}
{(isLoading || isLoadingForPermissions) && <LoadingIndicatorPage />} {(isLoading || isLoadingForPermissions) && <LoadingIndicatorPage />}
{canRead && roles && roles.length ? ( {canRead && roles && sortedRoles?.length ? (
<Table colCount={colCount} rowCount={rowCount}> <Table colCount={colCount} rowCount={rowCount}>
<Thead> <Thead>
<Tr> <Tr>