microsoftgraph / microsoft-graph-toolkit

Authentication Providers and UI components for Microsoft Graph 🦒
https://docs.microsoft.com/graph/toolkit/overview
Other
922 stars 285 forks source link

[BUG] person card has no config object #3236

Closed nonplace closed 1 day ago

nonplace commented 5 days ago

Describe the bug It is not possible to set the global config of the person card. Property 'config' does not exist on type 'typeof MgtPersonCard'.ts(2339) package "@microsoft/mgt-react": "^4.2.2"

To Reproduce Steps to reproduce the behavior:

  1. try to: https://learn.microsoft.com/en-us/graph/toolkit/components/person-card?tabs=react#global-component-configuration
  2. config object does not exist

Expected behavior enable disable certain features of the component globally

Environment (please complete the following information):

Additional context Discovered the bug when upgrading from major v 2.x to 4.x

Looking forward to get this cleared up and fixed!

Mnickii commented 1 day ago

Hi @nonplace, this is a clear issue with our documentation, thank you for bringing it to our attention. The configuration should use MgtPersonCardConfig e.g MgtPersonCardConfig.sections.files= false; We will be updating our documentation to fix this ASAP.