mirror of
https://github.com/datahub-project/datahub.git
synced 2026-01-05 06:16:37 +00:00
* feat(react incubation): user profile w/ mock data * removing spurious build-and-test change * fixing CI issues
26 lines
703 B
TypeScript
26 lines
703 B
TypeScript
import * as React from 'react';
|
|
import { CorpUser, EntityType } from '../../../types.generated';
|
|
import { Entity, PreviewType } from '../Entity';
|
|
import UserProfile from './UserProfile';
|
|
|
|
/**
|
|
* Definition of the DataHub Dataset entity.
|
|
*/
|
|
export class UserEntity implements Entity<CorpUser> {
|
|
type: EntityType = EntityType.User;
|
|
|
|
isSearchEnabled = () => true;
|
|
|
|
isBrowseEnabled = () => false;
|
|
|
|
getAutoCompleteFieldName = () => 'username';
|
|
|
|
getPathName: () => string = () => 'user';
|
|
|
|
getCollectionName: () => string = () => 'Users';
|
|
|
|
renderProfile: (urn: string) => JSX.Element = (_) => <UserProfile />;
|
|
|
|
renderPreview = (_: PreviewType, _1: CorpUser) => <p>Hello</p>;
|
|
}
|