Skip to content

Commit

Permalink
Merge pull request #395 from NIAEFEUP/fix/envolvidos-nao-aceitaram
Browse files Browse the repository at this point in the history
fix: stop showing 'envolvidos nao aceitaram' messages
  • Loading branch information
tomaspalma authored Feb 1, 2025
2 parents 1549855 + e6c1a99 commit caca4d6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/admin/requests/cards/ExchangeStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const ExchangeStatus = ({

return (
<p className={cn(status?.color, "rounded-full px-4 py-1 text-sm")}>
{status.message}
{status?.message}
</p>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { AdminRequestCardFooter } from "./AdminRequestCardFooter";
import { RequestDate } from "./RequestDate";
import { rejectEmailExchanges } from "../../../../utils/mail";
import { AdminRequestType } from "../../../../utils/exchange";
import { RequestStudentState } from "../RequestStudentState";
import { ValidateRequestButton } from "./ValidateRequestButton";

type Props = {
Expand Down Expand Up @@ -54,9 +53,6 @@ export const MultipleStudentExchangeCard = ({
</CardTitle>
<ExchangeStatus exchange={exchangeState} />
</div>
<RequestStudentState
accepted={exchange.accepted}
/>
<RequestDate
date={exchange.date}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import useStudentsSchedule from "../../../../hooks/admin/useStudentsSchedule";
import { RequestDate } from "./RequestDate";
import { rejectEmailExchanges } from "../../../../utils/mail";
import { AdminRequestType } from "../../../../utils/exchange";
import { RequestStudentState } from "../RequestStudentState";

type Props = {
exchange: UrgentRequest
Expand Down Expand Up @@ -39,9 +38,6 @@ export const SingleStudentExchangeCard = ({
</CardTitle>
<ExchangeStatus exchange={exchangeState} />
</div>
<RequestStudentState
accepted={exchange.accepted}
/>
<RequestDate
date={exchange.date}
/>
Expand Down

0 comments on commit caca4d6

Please sign in to comment.