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:
@@ -47,9 +47,6 @@ const config = {
|
||||
],
|
||||
},
|
||||
modularizeImports: {
|
||||
'lucide-react': {
|
||||
transform: 'lucide-react/dist/esm/icons/{{ kebabCase member }}',
|
||||
},
|
||||
lodash: {
|
||||
transform: 'lodash/{{member}}',
|
||||
},
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
"@tanstack/react-query": "5.32.0",
|
||||
"@types/react": "^18.2.79",
|
||||
"@types/react-dom": "^18.2.25",
|
||||
"lucide-react": "^0.373.0",
|
||||
"next": "14.2.2",
|
||||
"next-themes": "0.3.0",
|
||||
"react": "18.2.0",
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
"@types/react-dom": "^18.2.25",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"lucide-react": "^0.373.0",
|
||||
"next": "14.2.2",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -14,8 +14,7 @@ import { useRevalidateUserSession, useUserSession } from './use-user-session';
|
||||
const PRIVATE_PATH_PREFIXES = ['/home', '/admin', '/join', '/update-password'];
|
||||
|
||||
/**
|
||||
* @name AuthRedirectListener
|
||||
* @description A component that listens to auth state changes and redirects users
|
||||
* @name useAuthChangeListener
|
||||
* @param privatePathPrefixes
|
||||
* @param appHomePath
|
||||
*/
|
||||
@@ -66,6 +65,7 @@ export function useAuthChangeListener({
|
||||
revalidateUserSession,
|
||||
pathName,
|
||||
appHomePath,
|
||||
privatePathPrefixes,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@@ -599,6 +599,9 @@ importers:
|
||||
'@types/react-dom':
|
||||
specifier: ^18.2.25
|
||||
version: 18.2.25
|
||||
lucide-react:
|
||||
specifier: ^0.373.0
|
||||
version: 0.373.0(react@18.2.0)
|
||||
next:
|
||||
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)
|
||||
@@ -813,6 +816,9 @@ importers:
|
||||
date-fns:
|
||||
specifier: ^3.6.0
|
||||
version: 3.6.0
|
||||
lucide-react:
|
||||
specifier: ^0.373.0
|
||||
version: 0.373.0(react@18.2.0)
|
||||
next:
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user