@rileybathurst/paddle 0.0.62 → 0.0.63

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "0.0.62",
4
+ "version": "0.0.63",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
package/src/PaddleSEO.tsx CHANGED
@@ -71,6 +71,7 @@ type SEOtypes = {
71
71
 
72
72
  allStrapiLocation: {
73
73
  nodes: {
74
+ name: string;
74
75
  schemaType: string;
75
76
  streetAddress: string;
76
77
  addressLocality: string;
@@ -82,6 +83,8 @@ type SEOtypes = {
82
83
  closing_time: string;
83
84
  }[];
84
85
  };
86
+
87
+ children: React.ReactNode;
85
88
  }
86
89
 
87
90
  export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, breadcrumbs, strapiLocale, allStrapiLocation, children }: SEOtypes) => {
@@ -106,6 +109,8 @@ export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, bre
106
109
  const paymentAcceptedFormatted = paymentAcceptedQuery.split('\n').map((payment: string) => payment.trim().replace('- ', '')).join(', ');
107
110
  // console.log(paymentAcceptedFormatted);
108
111
 
112
+ console.log(children);
113
+
109
114
  return (
110
115
  <>
111
116
  <title>{PaddleTitle}</title>
@@ -132,6 +137,7 @@ export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, bre
132
137
  "department": [
133
138
  ${allStrapiLocation.nodes.map((location) => {
134
139
  return `{
140
+ "name": "${location.name}",
135
141
  "@type": "${location.schemaType}",
136
142
  "address": {
137
143
  "@type": "PostalAddress",