@rileybathurst/paddle 0.0.59 → 0.0.61
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 +1 -1
- package/src/PaddleComposition.tsx +1 -26
- package/src/PaddleLocationCard.tsx +1 -1
- package/src/PaddleSEO.tsx +16 -12
- package/src/Test.tsx +0 -3
package/package.json
CHANGED
|
@@ -1,32 +1,6 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
// ! this isnt finished it wont have faker when its done
|
|
3
3
|
import { faker } from '@faker-js/faker';
|
|
4
|
-
// import { GatsbyImage } from "gatsby-plugin-image"
|
|
5
|
-
|
|
6
|
-
// import WaterTexture from "../images/watertexture";
|
|
7
|
-
// import Kayaker from "../images/kayaker";
|
|
8
|
-
// import Supper from "../images/supper";
|
|
9
|
-
// import { useStrapiTextures } from "../hooks/use-strapi-textures"
|
|
10
|
-
|
|
11
|
-
/* // TODO: rename
|
|
12
|
-
interface TopThreeTypes {
|
|
13
|
-
className: string;
|
|
14
|
-
}
|
|
15
|
-
function TopThree({ className }: TopThreeTypes) {
|
|
16
|
-
|
|
17
|
-
// const { query } = useStrapiTextures()
|
|
18
|
-
// console.log(query.baseone);
|
|
19
|
-
|
|
20
|
-
return <GatsbyImage
|
|
21
|
-
image={useStrapiTextures().topthree.image.localFile.childImageSharp.gatsbyImageData}
|
|
22
|
-
alt="deepwater texture"
|
|
23
|
-
className={`texture-slice crops ${props.className}`}
|
|
24
|
-
objectFit="contain"
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
// ! Testing
|
|
28
|
-
return null;
|
|
29
|
-
} */
|
|
30
4
|
|
|
31
5
|
|
|
32
6
|
interface CompositionTypes {
|
|
@@ -35,6 +9,7 @@ interface CompositionTypes {
|
|
|
35
9
|
const PaddleComposition = ({ sport }: CompositionTypes) => {
|
|
36
10
|
return (
|
|
37
11
|
<div className="composition">
|
|
12
|
+
{sport}
|
|
38
13
|
{/* <WaterTexture className="texture-1" /> */}
|
|
39
14
|
<img
|
|
40
15
|
src={faker.image.urlPlaceholder()}
|
|
@@ -12,7 +12,7 @@ interface SeasonTypes {
|
|
|
12
12
|
closing_time: string;
|
|
13
13
|
name: string;
|
|
14
14
|
}
|
|
15
|
-
function Season({
|
|
15
|
+
function Season({ name }: SeasonTypes) {
|
|
16
16
|
|
|
17
17
|
// TODO: these need a query but thats not the most important first step
|
|
18
18
|
if (name === "Free Parking Lot" || name === "Parking" || name === "Delivery") {
|
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;
|
|
@@ -83,7 +84,7 @@ type SEOtypes = {
|
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
86
|
|
|
86
|
-
export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, breadcrumbs, strapiLocale, allStrapiLocation }: SEOtypes) => {
|
|
87
|
+
export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, breadcrumbs, strapiLocale, allStrapiLocation, children }: SEOtypes) => {
|
|
87
88
|
|
|
88
89
|
const businessName = `${strapiLocale.name} Kayak & Paddleboard rentals and tours`;
|
|
89
90
|
|
|
@@ -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
|
-
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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}",
|
|
@@ -168,7 +172,7 @@ export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, bre
|
|
|
168
172
|
url={strapiLocale.url}
|
|
169
173
|
{...breadcrumbs}
|
|
170
174
|
/>
|
|
171
|
-
{
|
|
175
|
+
{children}
|
|
172
176
|
</>
|
|
173
177
|
);
|
|
174
178
|
};
|
package/src/Test.tsx
DELETED