@mikezimm/fps-library-v2
Version:
Library of reusable typescript/javascript functions, interfaces and constants
43 lines (41 loc) • 2.62 kB
JavaScript
/**
* CodeAnalizerComment: Updated 1 imports on 2024-09-22 14:49:52
* Update:: import { IWebpartBannerProps } to '@mikezimm/fps-core-v7/lib/banner/mainReact/IWebpartBannerProps;'
*/
/**
* CodeAnalizerComment: Updated 2 imports on 2024-09-21 23:07:24
* Update:: import { check4This } to '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch;'
* Update:: import { BeakerModeParam } to '@mikezimm/fps-core-v7/lib/components/molecules/FullPageBackGround/interfaces/FullPageBGParams;'
*/
import * as React from 'react';
import { Icon, } from '@fluentui/react/lib/Icon';
import { check4This, Check4 } from '@mikezimm/fps-core-v7/lib/logic/Links/CheckSearch';
export function updateFarElementsWhiteRefresh(whiteProps) {
const { farBannerElementsArray, bannerProps, _showBeakerBanner } = whiteProps;
const { _refreshBGStyles, bannerCmdReactCSS, fpsPageBGWPProps, beAUser, FPSUser } = bannerProps;
const { defaultWhiteText, whiteRefreshTip } = fpsPageBGWPProps;
// https://github.com/mikezimm/Slick-Sections/issues/18
if (defaultWhiteText === true) {
farBannerElementsArray.push(
//https://github.com/mikezimm/Slick-Sections/issues/49
whiteRefreshTip ?
React.createElement("div", { title: 'Refresh Font colors - re-whitens them after scrolling down', onClick: _refreshBGStyles, style: { flexWrap: 'nowrap',
justifyContent: 'start',
alignItems: 'center',
display: 'flex', cursor: 'pointer' } },
React.createElement("div", null, whiteRefreshTip),
React.createElement(Icon, { iconName: 'SyncStatusSolid', style: bannerCmdReactCSS })) :
React.createElement("div", { title: 'Refresh Font colors - re-whitens them after scrolling down' },
React.createElement(Icon, { iconName: 'SyncStatusSolid', onClick: _refreshBGStyles, style: bannerCmdReactCSS })));
}
//Setting showTricks to false here ( skipping this line does not have any impact on bug #90 )
// https://github.com/mikezimm/Slick-Sections/issues/18
// https://github.com/mikezimm/pivottiles7/issues/357
// https://github.com/mikezimm/Slick-Sections/issues/93
if (check4This(Check4.BeakerModeParam, false) === true) {
farBannerElementsArray.push(React.createElement("div", { title: 'Show Debug Info' },
React.createElement(Icon, { iconName: 'TestAutoSolid', onClick: _showBeakerBanner, style: bannerCmdReactCSS })));
}
return farBannerElementsArray;
}
//# sourceMappingURL=WhiteRefreshElements.js.map