@rileybathurst/paddle 0.0.52 → 0.0.53

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.52",
4
+ "version": "0.0.53",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -45,7 +45,7 @@
45
45
  "typescript": "^5.2.2",
46
46
  "vite": "^5.2.0"
47
47
  },
48
- "description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
48
+ "description": "building blocks",
49
49
  "main": "src/index.tsx",
50
50
  "module": "src/index.tsx",
51
51
  "author": "",
package/src/PaddleSEO.tsx CHANGED
@@ -59,6 +59,9 @@ type SEOtypes = {
59
59
  latitude: string;
60
60
  longitude: string;
61
61
  geoRadius: string;
62
+ phone: string;
63
+ ogImage: string;
64
+ ogimagedescription: string;
62
65
  };
63
66
 
64
67
  strapiLocation: {
@@ -73,7 +76,7 @@ type SEOtypes = {
73
76
  };
74
77
  }
75
78
 
76
- export const PaddleSEO = (title, description, image, imageAlt, breadcrumbs, strapiLocale, strapiLocation: SEOtypes) => {
79
+ export const PaddleSEO = ({ title, description, ogImage, ogimagedescription, breadcrumbs, strapiLocale, strapiLocation }: SEOtypes) => {
77
80
 
78
81
  const businessName = `${strapiLocale.name} Kayak & Paddleboard rentals and tours`;
79
82
 
@@ -81,8 +84,8 @@ export const PaddleSEO = (title, description, image, imageAlt, breadcrumbs, stra
81
84
  // TODO: tagline would be a better fallback description
82
85
  const PaddleDescription = description || businessName;
83
86
  // url: `${strapiLocale.url}${SE0.url}` || strapiLocale.url,
84
- const PaddleImage = image || strapiLocale.ogImage;
85
- const PaddleImageAlt = imageAlt || strapiLocale.ogimagedescription;
87
+ const PaddleImage = ogImage || strapiLocale.ogImage;
88
+ const PaddleImageAlt = ogimagedescription || strapiLocale.ogimagedescription;
86
89
 
87
90
  // const query = '- cash\n - credit card';
88
91
  // const formatted = query.split('\n').map((item) => item.trim().replace('- ', '')).join(', ');