@rileybathurst/paddle 0.0.60 → 0.0.62

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/PaddleSEO.tsx +15 -11
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "0.0.60",
4
+ "version": "0.0.62",
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
+ schemaType: string;
74
75
  streetAddress: string;
75
76
  addressLocality: string;
76
77
  addressRegion: string;
@@ -103,7 +104,7 @@ export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, bre
103
104
  console.log(strapiLocale.paymentAccepted);
104
105
  const paymentAcceptedQuery = strapiLocale.paymentAccepted ? strapiLocale.paymentAccepted : '';
105
106
  const paymentAcceptedFormatted = paymentAcceptedQuery.split('\n').map((payment: string) => payment.trim().replace('- ', '')).join(', ');
106
- console.log(paymentAcceptedFormatted);
107
+ // console.log(paymentAcceptedFormatted);
107
108
 
108
109
  return (
109
110
  <>
@@ -128,17 +129,20 @@ export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, bre
128
129
  "description": "${strapiLocale.name}",
129
130
  "image": "${PaddleImage}",
130
131
 
132
+ "department": [
131
133
  ${allStrapiLocation.nodes.map((location) => {
132
134
  return `{
133
- "address": {
134
- "@type": "PostalAddress",
135
- "streetAddress": "${location.streetAddress}",
136
- "addressLocality": "${location.addressLocality}",
137
- "addressRegion": "${location.addressRegion}",
138
- "postalCode": "${location.postalCode}"
139
- },
140
- }`
141
- })},
135
+ "@type": "${location.schemaType}",
136
+ "address": {
137
+ "@type": "PostalAddress",
138
+ "streetAddress": "${location.streetAddress}",
139
+ "addressLocality": "${location.addressLocality}",
140
+ "addressRegion": "${location.addressRegion}",
141
+ "postalCode": "${location.postalCode}"
142
+ }
143
+ }`
144
+ })}
145
+ ],
142
146
  "geo": {
143
147
  "@type": "GeoCoordinates",
144
148
  "latitude": "${strapiLocale.latitude}",
@@ -159,7 +163,7 @@ export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, bre
159
163
  "numberOfEmployees" : "${strapiLocale.numberOfEmployees}",
160
164
  "priceRange": "${strapiLocale.priceRange}",
161
165
  "slogan": "${strapiLocale.slogan}",
162
- "paymentAccepted": "${paymentAcceptedFormatted}",
166
+ "paymentAccepted": "${paymentAcceptedFormatted}"
163
167
  }
164
168
  `}
165
169
  </Script>