merge
This commit is contained in:
@@ -3,8 +3,8 @@ import { useState } from "react";
|
|||||||
import { loginUser } from "@/app/lib/login";
|
import { loginUser } from "@/app/lib/login";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
import "./Login.css";
|
|
||||||
import AlertBox from "../AlertBox/AlertBox";
|
import AlertBox from "../AlertBox/AlertBox";
|
||||||
|
import "./Login.css";
|
||||||
|
|
||||||
function Login() {
|
function Login() {
|
||||||
const [user, setUser] = useState("");
|
const [user, setUser] = useState("");
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export async function GetStudent(numAcount: number) {
|
|||||||
const response = await axios.get(
|
const response = await axios.get(
|
||||||
`${envConfig.apiUrl}/student/${numAcount}`
|
`${envConfig.apiUrl}/student/${numAcount}`
|
||||||
);
|
);
|
||||||
|
|
||||||
return response.data;
|
return response.data;
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
const msg =
|
const msg =
|
||||||
|
|||||||
Reference in New Issue
Block a user