@greghowe79/the-lib 0.4.0 → 0.4.1

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.
@@ -6,7 +6,7 @@ const qwikCity = require("@builder.io/qwik-city");
6
6
  const styles = require("./styles.css.qwik.cjs");
7
7
  const button = require("../button/button.qwik.cjs");
8
8
  require("@fontsource/roboto-condensed/500.css");
9
- const NavigationMenu = qwik.component$(({ ariaLabel, logoComponent, listItems, actions }) => {
9
+ const NavigationMenu = qwik.component$(({ ariaLabel, logoComponent, listItems, actions, locale }) => {
10
10
  const location = qwikCity.useLocation();
11
11
  qwik.useStyles$(styles);
12
12
  return /* @__PURE__ */ jsxRuntime.jsx("nav", {
@@ -19,7 +19,7 @@ const NavigationMenu = qwik.component$(({ ariaLabel, logoComponent, listItems, a
19
19
  class: "menu-left",
20
20
  children: [
21
21
  /* @__PURE__ */ jsxRuntime.jsx(qwikCity.Link, {
22
- href: "/",
22
+ href: `/${locale}`,
23
23
  "aria-label": "Homepage",
24
24
  children: logoComponent && logoComponent({}, null, 0)
25
25
  }),
@@ -4,7 +4,7 @@ import { useLocation, Link } from "@builder.io/qwik-city";
4
4
  import styles from "./styles.css.qwik.mjs";
5
5
  import { Button } from "../button/button.qwik.mjs";
6
6
  import "@fontsource/roboto-condensed/500.css";
7
- const NavigationMenu = component$(({ ariaLabel, logoComponent, listItems, actions }) => {
7
+ const NavigationMenu = component$(({ ariaLabel, logoComponent, listItems, actions, locale }) => {
8
8
  const location = useLocation();
9
9
  useStyles$(styles);
10
10
  return /* @__PURE__ */ jsx("nav", {
@@ -17,7 +17,7 @@ const NavigationMenu = component$(({ ariaLabel, logoComponent, listItems, action
17
17
  class: "menu-left",
18
18
  children: [
19
19
  /* @__PURE__ */ jsx(Link, {
20
- href: "/",
20
+ href: `/${locale}`,
21
21
  "aria-label": "Homepage",
22
22
  children: logoComponent && logoComponent({}, null, 0)
23
23
  }),
@@ -8,6 +8,7 @@ export interface NavigationMenuProps {
8
8
  label: string;
9
9
  href: string;
10
10
  }>;
11
+ locale?: string;
11
12
  actions?: Array<{
12
13
  id: string;
13
14
  label?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",