Skip to content

Commit

Permalink
Remove deprecated digital reservation info
Browse files Browse the repository at this point in the history
Since this former PR:
#602
was conflicting with this and creating double digital information labels
in groupmodals the ReservationStatusInfoLabelDigital component had to go
  • Loading branch information
spaceo committed Oct 31, 2023
1 parent 39926a8 commit 0703487
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import AuthorYear from "../../../../components/author-year/authorYear";
import ReservationInfo from "../../../reservation-list/reservation-material/reservation-info";
import { ReservationType } from "../../../../core/utils/types/reservation-type";
import ArrowButton from "../../../../components/Buttons/ArrowButton";
import { isDigital } from "../../utils/helpers";

interface SelectableMaterialProps {
identifier?: string | null;
Expand Down Expand Up @@ -123,6 +124,7 @@ const SelectableMaterial: FC<SelectableMaterialProps & MaterialProps> = ({
showArrow={false}
showStatusCircleIcon={false}
reservationStatusClassNameOverride=""
isDigital={isDigital(displayedMaterial)}
/>
)}
</div>
Expand Down
8 changes: 1 addition & 7 deletions src/components/GroupModal/GroupModalReservationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { useText } from "../../core/utils/text";
import usePager from "../result-pager/use-pager";
import { ReservationType } from "../../core/utils/types/reservation-type";
import StatusBadge from "../../apps/loan-list/materials/utils/status-badge";
import { formatDate } from "../../core/utils/helpers/date";
import ReservationStatusInfoLabelDigital from "../reservation/ReservationStatusInfoLabelDigital";

export interface GroupModalReservationsListProps {
materials: ReservationType[];
Expand Down Expand Up @@ -72,7 +70,7 @@ const GroupModalReservationsList: FC<GroupModalReservationsListProps> = ({
displayedMaterial={material}
focused={i === firstInNewPage}
statusBadgeComponent={
faust ? (
faust && (
<StatusBadge
badgeDate={expiryDate}
neutralText={
Expand All @@ -85,10 +83,6 @@ const GroupModalReservationsList: FC<GroupModalReservationsListProps> = ({
}
infoText=""
/>
) : (
expiryDate && (
<ReservationStatusInfoLabelDigital date={expiryDate} />
)
)
}
openDetailsModal={openDetailsModal}
Expand Down
15 changes: 0 additions & 15 deletions src/components/reservation/ReservationStatusInfoLabelDigital.tsx

This file was deleted.

0 comments on commit 0703487

Please sign in to comment.