@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
10 lines • 547 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function hideInitialsWhenImageIsLoaded(props) {
// When the picture is loaded we can remove the initials from the dom.
// We should leave them in the dom however when the image fade in option is used
// so we do not remove the initials while the image is fading in.
return Boolean(props.isPictureLoaded) && !props.imageShouldFadeIn;
}
exports.hideInitialsWhenImageIsLoaded = hideInitialsWhenImageIsLoaded;
//# sourceMappingURL=propHelpers.js.map