IO-3020 IO-3036 Extend blur wrapper, add lock wrapper to components throughout the system. Many placeholders still left for upsell components.

This commit is contained in:
Patrick Fic
2024-12-04 11:51:54 -08:00
parent c85a5eb208
commit 6b3fb00cc0
47 changed files with 781 additions and 408 deletions

View File

@@ -11,9 +11,21 @@ const mapStateToProps = createStructuredSelector({
bodyshop: selectBodyshop
});
function FeatureWrapper({ bodyshop, featureName, noauth, blurContent = false, children, ...restProps }) {
function FeatureWrapper({
bodyshop,
featureName,
noauth,
blurContent = false,
children,
upsellComponent,
...restProps
}) {
const { t } = useTranslation();
if (upsellComponent) {
console.error("Upsell component passed in. This is not yet implemented.");
}
if (HasFeatureAccess({ featureName, bodyshop })) return children;
if (blurContent) {