Skip to content

Commit

Permalink
Removed duplicate payment details component
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jun 1, 2024
1 parent dcef7e6 commit 536a592
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 85 deletions.
2 changes: 1 addition & 1 deletion app/(pages)/patient/components/MedicalDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function MedicalDetails({
emptyContent={
medicalDetails.length === 0 ? (
<div className="h-full w-full font-bold text-black/70 grid place-items-center">
No medical history available for this user.
No medical history records available.
</div>
) : (
<Spinner className="" label="Loading..." color="warning" />
Expand Down
2 changes: 1 addition & 1 deletion app/(pages)/patient/components/PaymentDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function PaymentDeatils({ paymentHistory }: paymentsPropType) {
emptyContent={
paymentHistory.length === 0 ? (
<div className="h-full w-full font-bold text-black/70 grid place-items-center">
No payments history available for this user.
No payment history available yet.
</div>
) : (
<Spinner className="" label="Loading..." color="warning" />
Expand Down
79 changes: 0 additions & 79 deletions app/(pages)/patient/components/PaymentsDetails/index.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions app/(pages)/patient/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Headbar from "./Headbar";
import MedicalDetails from "./MedicalDetails";
import MedicineDetails from "./MedicineDetails";
import Notifications from "./Notifications";
import PaymentDeatils from "./PaymentsDetails";
import PaymentDetails from "./PaymentDetails";
import ProfileSettings from "./ProfileSettings";
import QRCode from "./QR";
import CarouselService from "./ServiceCarousel";
Expand All @@ -20,7 +20,7 @@ export {
MedicalDetails,
MedicineDetails,
Notifications,
PaymentDeatils,
PaymentDetails,
ProfileSettings,
QRCode,
CarouselService,
Expand Down
4 changes: 2 additions & 2 deletions app/(pages)/patient/paymenthistory/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PaymentDeatils } from "../components";
import { PaymentDetails } from "../components";
import { getPayments } from "@lib/patient";

export default async function Transactions() {
Expand All @@ -9,7 +9,7 @@ export default async function Transactions() {
<p className="self-start font-medium text-lg tracking-wider ml-5">
Payment History
</p>
<PaymentDeatils paymentHistory={response} />
<PaymentDetails paymentHistory={response} />
</section>
);
}

0 comments on commit 536a592

Please sign in to comment.