fix: streamline error handling and clean up unused imports
- Simplified error handling in `LoginPage` by removing the error parameter in the catch block. - Removed unused import of `cn` in `KeyboardShortcutsModal` to clean up the code. - Updated `UserPreferencesContext` to only destructure `status` from `useSession`, improving clarity. - Refactored multiple methods in `UserPreferencesService` to eliminate unnecessary variable assignments, enhancing performance. - Added ESLint directive to suppress unused variable warning for `NextAuth` import in type definitions.
This commit is contained in:
3
src/types/next-auth.d.ts
vendored
3
src/types/next-auth.d.ts
vendored
@@ -1,4 +1,5 @@
|
||||
import NextAuth from "next-auth"
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
import type NextAuth from "next-auth"
|
||||
|
||||
declare module "next-auth" {
|
||||
interface Session {
|
||||
|
||||
Reference in New Issue
Block a user