Role management not working
I can't make it use the correct context If someone wants to try it, use this branch
This commit is contained in:
@@ -8,12 +8,14 @@ import {
|
||||
import React, { useState } from "react";
|
||||
import { Button, StyleSheet, View } from "react-native";
|
||||
import { auth } from "../../firebase_config";
|
||||
import { useUser } from "../ContextUser";
|
||||
|
||||
const DEFAULT_ROLE = "resp";
|
||||
|
||||
const LoginScreen: React.FC = () => {
|
||||
const [email, setEmail] = useState<string>("");
|
||||
const [password, setPassword] = useState<string>("");
|
||||
const { setUser, setRole } = useUser();
|
||||
|
||||
const handleLogin = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user