@rileybathurst/paddle 0.0.63 → 0.0.65
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.
- package/README.md +2 -0
- package/package.json +1 -1
- package/src/PaddleSEO.tsx +5 -3
package/README.md
CHANGED
package/package.json
CHANGED
package/src/PaddleSEO.tsx
CHANGED
|
@@ -10,7 +10,9 @@ interface BreadcrumbsTypes {
|
|
|
10
10
|
}[]
|
|
11
11
|
// I could probably pass it two arguments instead but for now
|
|
12
12
|
function Breadcrumbs(breadcrumbs: BreadcrumbsTypes) {
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
// TODO: this was pushing on index with !
|
|
15
|
+
if (Object.entries(breadcrumbs).length === 0) return null;
|
|
14
16
|
|
|
15
17
|
// remove the breadcrumbs.url from the Object.entries
|
|
16
18
|
// console.log(breadcrumbs.url);
|
|
@@ -104,12 +106,12 @@ export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, bre
|
|
|
104
106
|
|
|
105
107
|
// TODO: this is now allStrapiLocation.nodes
|
|
106
108
|
// TODO: I think this will be a keylocation piece
|
|
107
|
-
console.log(strapiLocale.paymentAccepted);
|
|
109
|
+
// console.log(strapiLocale.paymentAccepted);
|
|
108
110
|
const paymentAcceptedQuery = strapiLocale.paymentAccepted ? strapiLocale.paymentAccepted : '';
|
|
109
111
|
const paymentAcceptedFormatted = paymentAcceptedQuery.split('\n').map((payment: string) => payment.trim().replace('- ', '')).join(', ');
|
|
110
112
|
// console.log(paymentAcceptedFormatted);
|
|
111
113
|
|
|
112
|
-
console.log(
|
|
114
|
+
console.log(breadcrumbs);
|
|
113
115
|
|
|
114
116
|
return (
|
|
115
117
|
<>
|