@ludo.ninja/components 2.2.48 → 2.2.50

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.
@@ -13,6 +13,7 @@ const ui_1 = require("../../../store/ui");
13
13
  const auth_1 = require("../../../utils/auth");
14
14
  const ludoDomains_1 = require("@ludo.ninja/core/build/ludoDomains");
15
15
  const env_1 = require("../../../store/env");
16
+ const headerStreak_1 = __importDefault(require("../components/headerStreak"));
16
17
  // Component
17
18
  const Header = () => {
18
19
  const isSignedIn = (0, store_1.useUserStore)((state) => state.isSignedIn);
@@ -26,6 +27,7 @@ const Header = () => {
26
27
  openSidebar,
27
28
  }, slots: {
28
29
  headerExpLabel: ((0, jsx_runtime_1.jsx)(headerExperienceLabel_1.default, { userId: getUser?.userId || "" })),
30
+ headerDaysStreak: (0, jsx_runtime_1.jsx)(headerStreak_1.default, { tooltipPosition: 'bottom' }),
29
31
  headerUserPick: (0, jsx_runtime_1.jsx)(headerUserPic_1.default, { userId: getUser?.userId || "" }),
30
32
  logoLinkComponent: ({ children }) => (0, jsx_runtime_1.jsx)(link_1.default, { href: ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE][isProd() ? "profile" : "app"], children: children }),
31
33
  } }));
@@ -78,12 +78,12 @@ const useSidebarData = () => {
78
78
  icon: (0, jsx_runtime_1.jsx)(icons_1.RewardsIcon, {}),
79
79
  isExternalUrl: false,
80
80
  },
81
- // {
82
- // href: `${ludoDomains[NEXT_PUBLIC_ENV_VALUE as TEnvValue]["account"]}/referrals`,
83
- // title: "Referral Dashboard",
84
- // icon: <ReferralDashboardIcon />,
85
- // isExternalUrl: false,
86
- // },
81
+ {
82
+ href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["account"]}/referrals`,
83
+ title: "Referral Dashboard",
84
+ icon: (0, jsx_runtime_1.jsx)(icons_1.ReferralDashboardIcon, {}),
85
+ isExternalUrl: false,
86
+ },
87
87
  {
88
88
  href: `${ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"]}/invite-codes`,
89
89
  title: "My invites",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/components",
3
- "version": "2.2.48",
3
+ "version": "2.2.50",
4
4
  "private": false,
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -8,7 +8,7 @@
8
8
  "build"
9
9
  ],
10
10
  "scripts": {
11
- "dev": "next dev -p 3000",
11
+ "dev": "next dev -p 3022",
12
12
  "clean": "rimraf tsconfig.tsbuildinfo && rimraf tsconfig.build.tsbuildinfo && rimraf build",
13
13
  "build:tsc": "npm run clean && tsc --build tsconfig.build.json",
14
14
  "replaceImports": "node scripts/replaceImports.js",