1.0.0 • Published 3 years ago
@bizzabo/whitelabel-utils v1.0.0
@bizzabo/whitelabel-utils
A set of utility functions solely for the purpose of calculating correct internal and attendee-facing website URLs (for agenda, community, registration links, website links, widget embedding).
Usage
import {
getInternalWebsiteBaseUrl,
getPublicWebsiteBaseUrl,
isBizzaboInternalWebsiteWhiteLabeled
} = from '@bizzabo/whitelabel-utils';
const isWl = isBizzaboInternalWebsiteWhiteLabeled(event);
export const getInternalWebsiteBaseUrlSelector = createSelector(
eventSelector,
event => getInternalWebsiteBaseUrl(event)
);
draftState.event = {
...draftState.event,
publicWebsiteBaseUrl: getPublicWebsiteBaseUrl(draftState.event),
internalWebsiteBaseUrl: getInternalWebsiteBaseUrl(draftState.event),
};
1.0.0
3 years ago