mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-25 00:48:45 +00:00
feat(react): add null state indicator in user profile when no entities (#2377)
This commit is contained in:
parent
fefcdd949c
commit
a19085094a
@ -69,7 +69,9 @@ export const BrowseResults = ({
|
||||
</>
|
||||
)}
|
||||
bordered
|
||||
locale={{ emptyText: <Empty description="No Entities" /> }}
|
||||
locale={{
|
||||
emptyText: <Empty description="No Entities" image={Empty.PRESENTED_IMAGE_SIMPLE} />,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<Col span={24}>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { Menu } from 'antd';
|
||||
import { Menu, Empty } from 'antd';
|
||||
import { MenuProps } from 'antd/lib/menu';
|
||||
import React from 'react';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
@ -75,7 +75,11 @@ export default function UserDetails({ ownerships, subview, item, urn }: Props) {
|
||||
</Menu>
|
||||
</MenuWrapper>
|
||||
<Content>
|
||||
{subview === Subview.Ownership && <UserOwnership ownerships={ownerships} entityPath={item} />}
|
||||
{ownershipMenuOptions && ownershipMenuOptions.length > 0 ? (
|
||||
subview === Subview.Ownership && <UserOwnership ownerships={ownerships} entityPath={item} />
|
||||
) : (
|
||||
<Empty description="Looks like you don't own any datasets" image={Empty.PRESENTED_IMAGE_SIMPLE} />
|
||||
)}
|
||||
</Content>
|
||||
</DetailWrapper>
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user