From 1b0e37bfa02fd64bafe8c8b1611e5a463a90b3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Palma?= Date: Thu, 31 Oct 2024 13:49:19 +0000 Subject: [PATCH] fix: marketplace exchange request card does not show request status --- .../exchange/requests/view/cards/RequestCard.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/exchange/requests/view/cards/RequestCard.tsx b/src/components/exchange/requests/view/cards/RequestCard.tsx index ad12746d..78ad4444 100644 --- a/src/components/exchange/requests/view/cards/RequestCard.tsx +++ b/src/components/exchange/requests/view/cards/RequestCard.tsx @@ -1,23 +1,14 @@ -import { ArchiveBoxIcon, ArrowRightIcon, ChevronDownIcon } from "@heroicons/react/24/outline"; -import { ChevronUpIcon } from "@heroicons/react/24/solid"; import { Dispatch, SetStateAction, useContext, useState, useEffect } from "react"; -import { ClassDescriptor, MarketplaceRequest } from "../../../../../@types"; -import ScheduleContext from "../../../../../contexts/ScheduleContext"; import { Button } from "../../../../ui/button"; import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../../../../ui/card"; import { Checkbox } from "../../../../ui/checkbox"; import { Separator } from "../../../../ui/separator"; -import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../../../ui/tooltip"; -import RequestCardClassBadge from "./RequestCardClassBadge"; -import useSchedule from "../../../../../hooks/useSchedule"; -import { toast } from "../../../../ui/use-toast"; import exchangeRequestService from "../../../../../api/services/exchangeRequestService"; import { ListRequestChanges } from "./ListRequestChanges"; import ExchangeRequestCommonContext from "../../../../../contexts/ExchangeRequestCommonContext"; import { CommonCardHeader } from "./CommonCardHeader"; export const RequestCard = ({ }) => { - const { exchangeSchedule, setExchangeSchedule } = useContext(ScheduleContext); const { chosenRequest, hiddenRequests, request, open, setOpen, selectedOptions, setSelectedOptions, selectAll, setSelectAll, hide, togglePreview @@ -82,7 +73,7 @@ export const RequestCard = ({ }) => { hovered={hovered} request={request} openHook={[open, setOpen]} - showRequestStatus={true} + showRequestStatus={false} hideAbility={false} hideHandler={hide} classUserGoesToName="class_issuer_goes_to"