Add lucide-react library to project

The lucide-react library has been added to the project in the `accounts` and `team-accounts` package.json files, and in the pnpm-lock.yaml. Changes were made to the next.config.mjs file to reflect this. Also, the name of the `AuthRedirectListener` function in use-auth-change-listener.ts file has been changed to `useAuthChangeListener`.
This commit is contained in:
giancarlo
2024-04-24 20:07:36 +07:00
parent 452e9e3567
commit 38a03b6a52
5 changed files with 10 additions and 5 deletions

View File

@@ -47,9 +47,6 @@ const config = {
], ],
}, },
modularizeImports: { modularizeImports: {
'lucide-react': {
transform: 'lucide-react/dist/esm/icons/{{ kebabCase member }}',
},
lodash: { lodash: {
transform: 'lodash/{{member}}', transform: 'lodash/{{member}}',
}, },

View File

@@ -36,6 +36,7 @@
"@tanstack/react-query": "5.32.0", "@tanstack/react-query": "5.32.0",
"@types/react": "^18.2.79", "@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25", "@types/react-dom": "^18.2.25",
"lucide-react": "^0.373.0",
"next": "14.2.2", "next": "14.2.2",
"next-themes": "0.3.0", "next-themes": "0.3.0",
"react": "18.2.0", "react": "18.2.0",

View File

@@ -37,6 +37,7 @@
"@types/react-dom": "^18.2.25", "@types/react-dom": "^18.2.25",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"date-fns": "^3.6.0", "date-fns": "^3.6.0",
"lucide-react": "^0.373.0",
"next": "14.2.2", "next": "14.2.2",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",

View File

@@ -14,8 +14,7 @@ import { useRevalidateUserSession, useUserSession } from './use-user-session';
const PRIVATE_PATH_PREFIXES = ['/home', '/admin', '/join', '/update-password']; const PRIVATE_PATH_PREFIXES = ['/home', '/admin', '/join', '/update-password'];
/** /**
* @name AuthRedirectListener * @name useAuthChangeListener
* @description A component that listens to auth state changes and redirects users
* @param privatePathPrefixes * @param privatePathPrefixes
* @param appHomePath * @param appHomePath
*/ */
@@ -66,6 +65,7 @@ export function useAuthChangeListener({
revalidateUserSession, revalidateUserSession,
pathName, pathName,
appHomePath, appHomePath,
privatePathPrefixes,
]); ]);
} }

6
pnpm-lock.yaml generated
View File

@@ -599,6 +599,9 @@ importers:
'@types/react-dom': '@types/react-dom':
specifier: ^18.2.25 specifier: ^18.2.25
version: 18.2.25 version: 18.2.25
lucide-react:
specifier: ^0.373.0
version: 0.373.0(react@18.2.0)
next: next:
specifier: 14.3.0-canary.7 specifier: 14.3.0-canary.7
version: 14.3.0-canary.7(@babel/core@7.24.4)(@opentelemetry/api@1.8.0)(@playwright/test@1.43.1)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) version: 14.3.0-canary.7(@babel/core@7.24.4)(@opentelemetry/api@1.8.0)(@playwright/test@1.43.1)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)
@@ -813,6 +816,9 @@ importers:
date-fns: date-fns:
specifier: ^3.6.0 specifier: ^3.6.0
version: 3.6.0 version: 3.6.0
lucide-react:
specifier: ^0.373.0
version: 0.373.0(react@18.2.0)
next: next:
specifier: 14.3.0-canary.7 specifier: 14.3.0-canary.7
version: 14.3.0-canary.7(@babel/core@7.24.4)(@opentelemetry/api@1.8.0)(@playwright/test@1.43.1)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) version: 14.3.0-canary.7(@babel/core@7.24.4)(@opentelemetry/api@1.8.0)(@playwright/test@1.43.1)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)