Skip to content

Commit

Permalink
refactor: coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao committed Dec 26, 2024
1 parent 2a1e516 commit 7649b9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contexts/Auth/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import {
useReducer,
useRef,
} from "react";
import { useRouter } from "next/navigation";
import { usePathname } from "next/navigation";
import { useRouter, usePathname } from "next/navigation";
import useSWR, { SWRConfig } from "swr";
import { useDispatch } from "react-redux";

Expand Down Expand Up @@ -194,6 +193,9 @@ export function AuthProvider({ children }: PropsWithChildren) {
dispatch({ type: ActionTypes.UPDATE_USER, payload });
break;
}
default: {
break;
}
}
},
openLoginModal: (payload) => {
Expand Down

0 comments on commit 7649b9b

Please sign in to comment.