Skip to content

Commit

Permalink
fix: mod row
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegothx committed Jul 13, 2024
1 parent fded85d commit 7a31af0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/mod/userViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const UserViewer = (): JSX.Element => {
const { status: studentDataStatus, error: studentDataError, data: studentInfo } = useQuery({
queryKey: ['studentInfo', userRut],
retry: false,
onSuccess: (data) => {
onSuccess: (data: Student | null) => {
if (data !== undefined && data !== null) {
setSearchingPlanModalIsOpen(false)
if (authState?.setStudent !== null) {
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/pages/user/CurriculumListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface RowProps {
curriculum: LowDetailPlanView
handleDelete?: Function
handleFavourite?: Function
openPlanNameModal: Function
openPlanNameModal?: Function
impersonateRut?: string
}

Expand Down Expand Up @@ -44,10 +44,12 @@ const CurriculumListRow = ({ curriculum, handleDelete, handleFavourite, openPlan
}}
>{curriculum.name}
</Link>
{openPlanNameModal !== undefined &&
<div className="hover-text">
<button className='pl-3' onClick={() => openPlanNameModal(curriculum.id, curriculum.name) }><EditIcon/></button>
<span className="tooltip-text font-thin">Editar nombre</span>
</div>
}
</div>
}
</th>
Expand Down

0 comments on commit 7a31af0

Please sign in to comment.