Skip to content

Person components don't have custom image when using custom data #854

Open
@AndrejNikolicEq

Description

@AndrejNikolicEq

When using custom data for Person Components, you can't add and use custom images.

PersonAvatar dataSource type is AvatarData
PersonCard dataSource type is CardData

export type AvatarData = Pick<PersonInfo, 'name' | 'accountType'>;
export type CardData = PersonDetails;

export type PersonInfo = {
    azureId: string;
    name?: string;
    jobTitle?: string;
    department?: string;
    mail?: string;
    mobilePhone?: string;
    accountType?: PersonAccountType;
    officeLocation?: string;
    managerAzureUniqueId?: string;
};
export type PersonDetails = PersonInfo & {
    positions?: Position[];
    manager?: Manager;
};

PersonDetails and PersonInfo don't have pictureSrc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions