@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "0.0.59",
4
+ "version": "0.0.61",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -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({ season_start, season_end, opening_time, closing_time, name }: SeasonTypes) {
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
- "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}",
@@ -168,7 +172,7 @@ export const PaddleSEO = ({ title, description, ogImage, ogImageDescription, bre
168
172
  url={strapiLocale.url}
169
173
  {...breadcrumbs}
170
174
  />
171
- {/* {SE0.children} */}
175
+ {children}
172
176
  </>
173
177
  );
174
178
  };
package/src/Test.tsx DELETED
@@ -1,3 +0,0 @@
1
- import * as React from "react"
2
-
3
- export const Button = () => null