correcao detalhes aluno

This commit is contained in:
2026-02-24 15:37:09 +00:00
parent e34eef4981
commit 814aa02413
2 changed files with 7 additions and 7 deletions

View File

@@ -17,11 +17,11 @@ const DetalhesAlunos = memo(() => {
const params = useLocalSearchParams();
const alunoId =
typeof params.alunoId === 'string'
? params.alunoId
: Array.isArray(params.alunoId)
? params.alunoId[0]
: null;
typeof params.alunoId === 'string'
? params.alunoId
: Array.isArray(params.alunoId)
? params.alunoId[0]
: null;
const [aluno, setAluno] = useState<any>(null);
const [loading, setLoading] = useState(true);
@@ -30,7 +30,7 @@ const DetalhesAlunos = memo(() => {
if (!alunoId) {
console.log('alunoId não recebido');
setLoading(false);
//return;
return;
}
fetchAluno();

View File

@@ -147,7 +147,7 @@ const ListaAlunosProfessor = memo(() => {
onPress={() =>
router.push({
pathname: '/Professor/Alunos/DetalhesAluno',
params: { aluno: JSON.stringify(aluno) },
params: { alunoId: aluno.id },
})
}
>