Skip to content

Commit

Permalink
fix: button report lesson on list Classroom
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnypaulino committed Jan 22, 2025
1 parent 4ef4886 commit 447e48c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/Pages/Classroom/ClassroomOne/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Button } from "primereact/button";
import { useContext, useState } from "react";
import { useNavigate, useParams } from "react-router-dom";
import pessoas from "../../../Assets/images/pessoasgray.svg";
import meeting from "../../../Assets/images/question_mark.svg";

import TextInput from "../../../Components/TextInput";

Expand Down Expand Up @@ -102,7 +101,7 @@ const ClassroomOnePage = () => {
count={classroom?.students?.length}
/>
</div>
<div
{/* <div
className="col-12 md:col-6"
onClick={() => history(`/turma/${id}/aulas`)}
>
Expand All @@ -111,7 +110,7 @@ const ClassroomOnePage = () => {
description="Acesse para visualizar suas aulas"
icon={meeting}
/>
</div>
</div> */}
{/* <div
className="col-12 md:col-6"
onClick={() => history(`/turma/${id}/encontros`)}
Expand Down
9 changes: 9 additions & 0 deletions src/Pages/Classroom/ListClassroom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ const ListClassroomPage = () => {
<DropdownComponent placerholder="Escolha o projeto" options={[{name: "Todas",},...propsAplication.project!]} optionsLabel="name" optionsValue="id" value={props.project} onChange={(e) => { console.log(e.value); props.setProject(e.value); idProject(e.value) }} />
</div>
</Column> */}
{(
<Column id="end">
<Button
label="Gerar Relatório de lições"
icon={"pi pi-file-export"}
onClick={() => history("/aulas")}
/>
</Column>
)}
{(1 === ROLE.ADMIN ||
1 === ROLE.Coordenador) && (
<Column id="end">
Expand Down
2 changes: 1 addition & 1 deletion src/Router/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const RoutesApp = () => {
/>
<Route
element={<PrivateRoute Component={<ClassesList />} />}
path="/turma/:id/aulas"
path="/aulas"
/>
<Route
element={<PrivateRoute Component={<Registration />} />}
Expand Down

0 comments on commit 447e48c

Please sign in to comment.