move empty state out of list (#17560)

fixes: keycloak/keycloak-ui#4561
This commit is contained in:
Erik Jan de Wit 2023-03-13 07:45:44 +01:00 committed by GitHub
parent 6d39c5336a
commit 4f4c850766
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -307,6 +307,7 @@ export const GroupPickerDialog = ({
</DataListItemRow> </DataListItemRow>
</DataListItem> </DataListItem>
))} ))}
</DataList>
{groups.length === 0 && !isSearching && ( {groups.length === 0 && !isSearching && (
<ListEmptyState <ListEmptyState
hasIcon={false} hasIcon={false}
@ -320,7 +321,6 @@ export const GroupPickerDialog = ({
instructions={t("common:noSearchResultsInstructions")} instructions={t("common:noSearchResultsInstructions")}
/> />
)} )}
</DataList>
</PaginatingTableToolbar> </PaginatingTableToolbar>
</Modal> </Modal>
); );