Skip to content

Commit

Permalink
Update LivePersona.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
joelfmrodrigues authored Jul 22, 2021
1 parent 048ac94 commit 58b6992
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions src/controls/LivePersona/LivePersona.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { BaseComponentContext} from "@microsoft/sp-component-base";
import * as React from "react";
import { createElement, useEffect, useRef } from "react";
import { useState } from "react";
Expand Down Expand Up @@ -28,18 +27,18 @@ export const LivePersona: React.FunctionComponent<ILivePersonatProps> = (
})();
}, []);

let renderPersona: JSX.Element = null;
if (isComponentLoaded) {
renderPersona = createElement(sharedLibrary.current.LivePersonaCard, {
className: 'livePersonaCard',
clientScenario: 'livePersonaCard',
disableHover: disableHover,
hostAppPersonaInfo: {
PersonaType: 'User'
},
upn: upn,
serviceScope: context.serviceScope,
}, createElement("div",{},template));
}
return renderPersona;
let renderPersona: JSX.Element = null;
if (isComponentLoaded) {
renderPersona = createElement(sharedLibrary.current.LivePersonaCard, {
className: 'livePersonaCard',
clientScenario: 'livePersonaCard',
disableHover: disableHover,
hostAppPersonaInfo: {
PersonaType: 'User'
},
upn: upn,
serviceScope: context.serviceScope,
}, createElement("div",{},template));
}
return renderPersona;
};

0 comments on commit 58b6992

Please sign in to comment.