1

I'm struggling setting the current user to a people picker control in Office.Fabric.UI

const people: (IPersonaProps & { key: string | number })[] = [
  {
    key: 1,
    imageInitials: 'PV',
    text: 'Test test',
    secondaryText: 'Designer',
    tertiaryText: 'In a meeting',
    optionalText: 'Available at 4:00pm',
  }
];

public render() {
    return (
        <div>
          <Components.SPPeoplePicker
             selectedItems={people}/>
        </div>
    );
}

Webpack keeps saying

TS2559: Type '{ selectedItems: string[]; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{ children?: ReactNode; }> & Readonly'.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.