@posiwise/shared-components 0.0.237 → 0.0.238
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9117,17 +9117,20 @@ const TITLES = {
|
|
|
9117
9117
|
"terms-of-service": "Terms & conditions"
|
|
9118
9118
|
};
|
|
9119
9119
|
function publicLegalPageRoutes(options = {}) {
|
|
9120
|
-
const page = (path, tab) =>
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9120
|
+
const page = (path, tab) => {
|
|
9121
|
+
const description = options.pages?.[tab]?.description ?? options.description;
|
|
9122
|
+
return {
|
|
9123
|
+
path,
|
|
9124
|
+
component: PrivacyAndTosComponent,
|
|
9125
|
+
data: {
|
|
9126
|
+
title: options.pages?.[tab]?.title ?? options.title ?? TITLES[tab],
|
|
9127
|
+
...description ? { description } : {},
|
|
9128
|
+
public: true,
|
|
9129
|
+
tab
|
|
9130
|
+
},
|
|
9131
|
+
...options.canActivate ? { canActivate: options.canActivate } : {}
|
|
9132
|
+
};
|
|
9133
|
+
};
|
|
9131
9134
|
return [
|
|
9132
9135
|
page("privacy-policy", "privacy-policy"),
|
|
9133
9136
|
page("privacy-policy/:slug", "privacy-policy"),
|