synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
28 lines • 1.22 kB
TypeScript
import { UserCardSize } from '@/utils/SynapseConstants';
import { RowSet, UserProfile } from '@sage-bionetworks/synapse-types';
import { Component } from 'react';
export type UserCardListProps = {
list: (string | null)[];
size?: UserCardSize;
rowSet?: RowSet;
};
export type UserCardListState = {
userProfileMap: Record<string, UserProfile>;
};
export declare class UserCardList extends Component<UserCardListProps, UserCardListState> {
constructor(props: UserCardListProps);
componentDidMount(): void;
componentDidUpdate(prevProps: UserCardListProps): void;
update(list: (string | null)[]): void;
/**
* Given data this will find rows where there is no userId columnType and create faux user profiles
* using firstName, lastName, and institution (company in UserProfile object).
* @param {RowSet} rowSet
* @returns list of UserProfiles with firstName, lastName, company, userName (first letter of firstName) filled out.
* @memberof UserCardList
*/
manuallyExtractData(rowSet: RowSet): Omit<UserProfile, "ownerId">[];
render(): import("react/jsx-runtime").JSX.Element;
}
export default UserCardList;
//# sourceMappingURL=UserCardList.d.ts.map