mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-06-28 16:25:46 +08:00
Changed auth slice to status slice to better reflect onboarding state tracking
This commit is contained in:
parent
90f227a2c0
commit
b30bbb62df
6 changed files with 38 additions and 35 deletions
|
@ -14,14 +14,12 @@ import DrawerButton from "../Button/DrawerButton";
|
|||
import { useDispatch, useSelector } from "react-redux";
|
||||
import { RootState } from "../../features/redux/Store/Store";
|
||||
import LogoutIcon from "../../icons/LogoutIcon/LogoutIcon";
|
||||
import { logout } from "../../features/redux/slices/AuthSlice/AuthSlice";
|
||||
import { logout } from "../../features/redux/slices/StatusSlice/StatusSlice";
|
||||
import AsyncStorage from "@react-native-async-storage/async-storage";
|
||||
|
||||
export default function CustomDrawerContent(props: {}) {
|
||||
const navigation = useNavigation<RootDrawerParamList>();
|
||||
const logged_in = useSelector(
|
||||
(state: RootState) => state.auth.creds.logged_in
|
||||
);
|
||||
const logged_in = useSelector((state: RootState) => state.status.logged_in);
|
||||
const dispatch = useDispatch();
|
||||
if (logged_in) {
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue