Enode — API Reference
    Preparing search index...

    Props of AccountIdentity. Plain data — the host resolves the user.

    type AccountIdentityProps = {
        avatar: AvatarUploadFieldProps;
        compact?: boolean;
        name: string;
        onClick?: () => void;
        onOpenPlan?: () => void;
        organisationName?: string | null;
        planLine?: string | null;
        roleFindId?: string;
        roleKey: AccountRoleKey;
    }
    Index

    Properties

    Photo field props (upload / crop / remove). The full variant renders AvatarUploadField; the compact variant only shows a small avatar from userID (or the pending value).

    compact?: boolean

    Menu-row variant: small avatar + two lines, the whole row is a button.

    name: string

    The person's display name (line 1).

    onClick?: () => void

    Compact variant only: fires when the row is pressed.

    onOpenPlan?: () => void

    Opens the plan page — the host decides how (portal router.push("/dashboard/plan"), app openEnodePortal("/dashboard/plan")).

    organisationName?: string | null

    Organisation on line 2; null/absent falls back per roleOrganisationLine.

    planLine?: string | null

    Plan link text, e.g. from planLine(t, licence). Pass it only when the user holds readLicense; null hides the plan row.

    roleFindId?: string

    Optional data-find id placed on the role/organisation line.

    Role word on line 2; derive with accountRoleKey(user.role).