@rileybathurst/paddle 0.0.67 → 0.0.68
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/PaddleSEO.tsx +8 -5
package/package.json
CHANGED
package/src/PaddleSEO.tsx
CHANGED
|
@@ -11,18 +11,21 @@ interface BreadcrumbsTypes {
|
|
|
11
11
|
// I could probably pass it two arguments instead but for now
|
|
12
12
|
function Breadcrumbs(breadcrumbs: BreadcrumbsTypes) {
|
|
13
13
|
|
|
14
|
+
// remove the breadcrumbs.url from the Object.entries
|
|
15
|
+
// console.log(breadcrumbs.url);
|
|
16
|
+
const { url, ...rest } = breadcrumbs;
|
|
17
|
+
|
|
18
|
+
console.log(breadcrumbs);
|
|
19
|
+
console.log(rest);
|
|
20
|
+
|
|
14
21
|
// TODO: testing
|
|
15
|
-
if (!
|
|
22
|
+
if (!rest) {
|
|
16
23
|
console.error('🦖');
|
|
17
24
|
return null;
|
|
18
25
|
}
|
|
19
26
|
|
|
20
27
|
console.log('🦊');
|
|
21
28
|
|
|
22
|
-
// remove the breadcrumbs.url from the Object.entries
|
|
23
|
-
// console.log(breadcrumbs.url);
|
|
24
|
-
const { url, ...rest } = breadcrumbs;
|
|
25
|
-
|
|
26
29
|
// console.log(rest);
|
|
27
30
|
|
|
28
31
|
return (
|