@@ -63,7 +63,10 @@ const CardTitle = (props: { title: string }) => (
|
||||
);
|
||||
|
||||
/** @public */
|
||||
export const GroupProfileCard = (props: { variant?: InfoCardVariants, hideLinks?: boolean }) => {
|
||||
export const GroupProfileCard = (props: {
|
||||
variant?: InfoCardVariants;
|
||||
hideLinks?: boolean;
|
||||
}) => {
|
||||
const catalogApi = useApi(catalogApiRef);
|
||||
const alertApi = useApi(alertApiRef);
|
||||
const { entity: group } = useEntity<GroupEntity>();
|
||||
|
||||
@@ -58,7 +58,10 @@ const CardTitle = (props: { title?: string }) =>
|
||||
) : null;
|
||||
|
||||
/** @public */
|
||||
export const UserProfileCard = (props: { variant?: InfoCardVariants, hideLinks?: boolean }) => {
|
||||
export const UserProfileCard = (props: {
|
||||
variant?: InfoCardVariants;
|
||||
hideLinks?: boolean;
|
||||
}) => {
|
||||
const { entity: user } = useEntity<UserEntity>();
|
||||
if (!user) {
|
||||
return <Alert severity="error">User not found</Alert>;
|
||||
|
||||
Reference in New Issue
Block a user