@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
12 lines • 650 B
JavaScript
define(["require", "exports"], function (require, exports) {
"use strict";
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