fixing little things
This commit is contained in:
@@ -4,7 +4,6 @@ import Information from "@/app/Components/Global/Information/information";
|
||||
import SearchUser from "@/app/Components/Global/SearchUser/searchUser";
|
||||
import ShowError from "@/app/Components/Global/ShowError";
|
||||
import Toggle from "@/app/Components/Global/Toggle/Toggle";
|
||||
import Table from "@/app/Components/Global/table";
|
||||
|
||||
import { envConfig } from "@/app/lib/config";
|
||||
import { GetRegisterStudent } from "@/app/lib/getRegisterStudent";
|
||||
@@ -23,8 +22,6 @@ async function getInscripcion(idCuenta: number) {
|
||||
}
|
||||
}
|
||||
|
||||
const headers = ["Inscrito", "Tiempo", "Confirmó"];
|
||||
|
||||
export default async function Page(props: {
|
||||
searchParams?: Promise<{
|
||||
key?: string;
|
||||
@@ -88,13 +85,14 @@ export default async function Page(props: {
|
||||
<Information
|
||||
NoCuenta={student.id_cuenta}
|
||||
nombre={student.nombre}
|
||||
carrera={student.carrera}
|
||||
/>
|
||||
<Table headers={headers} data={tableData} />
|
||||
</div>
|
||||
|
||||
<AsignacionMesas
|
||||
idCuenta={student.id_cuenta}
|
||||
inscripcion={inscripcion}
|
||||
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -5,8 +5,8 @@ import { envConfig } from "@/app/lib/config";
|
||||
import toast from "react-hot-toast";
|
||||
|
||||
type Props = {
|
||||
idCuenta: number;
|
||||
inscripcion: any[];
|
||||
idCuenta: number;
|
||||
};
|
||||
|
||||
export default function AsignacionMesas({
|
||||
@@ -33,7 +33,6 @@ export default function AsignacionMesas({
|
||||
setPuedeContinuar(true);
|
||||
}, [inscripcion]);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (!puedeContinuar || !idCuenta) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user