Skip to content

Commit

Permalink
Import alias fixes for types
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jun 30, 2024
1 parent 4123c74 commit a060904
Show file tree
Hide file tree
Showing 20 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/app/(pages)/patient/appointments/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Card, Image } from "@nextui-org/react";
import { BookAppointment } from "../components";
import { Patient } from "@/src/types";
import { Patient } from "@/types";
import { getPatientData } from "@lib/patient";

export default async function Appointments() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(pages)/patient/components/Calendar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "@nextui-org/react";
import { getFormattedDate } from "@utils/getDate";
import { LuCalendarClock } from "react-icons/lu";
import { bookedAppointments } from "@/src/types";
import { bookedAppointments } from "@/types";

type upcomingAppointmentsType = {
upcomingAppointments: bookedAppointments;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { MedicalHistory } from "@/src/types";
import { MedicalHistory } from "@/types";
import {
Chip,
Spinner,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import { getFormattedDate } from "@utils/getDate";
import { PaymentHistory } from "@/src/types";
import { PaymentHistory } from "@/types";
import {
Chip,
Spinner,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { Patient } from "@/src/types";
import { Patient } from "@/types";
import {
Input,
Button,
Expand Down
2 changes: 1 addition & 1 deletion src/app/(pages)/patient/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Script from "next/script";
import { Sidebar } from "./components";
import { Headbar } from "@components/index";
import { Patient } from "@/src/types";
import { Patient } from "@/types";
import { getPatientData } from "@lib/patient";

import type { Metadata } from "next";
Expand Down
2 changes: 1 addition & 1 deletion src/app/(pages)/patient/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
MedicineDetails,
HealthConditions,
} from "./components";
import { Patient, bookedAppointments } from "@/src/types";
import { Patient, bookedAppointments } from "@/types";
import { getPatientData, getUpcomingAppointments } from "@lib/patient";

export default async function PatientPage() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(pages)/patient/qrcode/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPatientData } from "@lib/patient";
import { Patient } from "@/src/types";
import { Patient } from "@/types";
import { Card, Link, User } from "@nextui-org/react";
import { QRCode } from "../components";

Expand Down
2 changes: 1 addition & 1 deletion src/app/(pages)/patient/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Patient } from "@/src/types";
import { Patient } from "@/types";
import { getPatientData } from "@lib/patient";
import { ProfileSettings } from "../components";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ModalBody,
ModalFooter,
} from "@nextui-org/react";
import { PatientDetails } from "@/src/types";
import { PatientDetails } from "@/types";
import { getFormattedDate } from "@utils/getDate";
import { approveAppointment } from "@lib/receptionist";
import toast, { Toaster } from "react-hot-toast";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Receptionist } from "@/src/types";
import { Receptionist } from "@/types";
import { Input, Button, Card, Avatar } from "@nextui-org/react";
import { getReceptionistData } from "@lib/receptionist";

Expand Down
2 changes: 1 addition & 1 deletion src/app/(pages)/receptionist/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Receptionist } from "@/src/types";
import { Receptionist } from "@/types";
import { Sidebar } from "./components";
import { Headbar } from "@components/index";

Expand Down
2 changes: 1 addition & 1 deletion src/app/(pages)/receptionist/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
BsPersonCheckFill,
BsPersonLinesFill,
} from "react-icons/bs";
import { Receptionist } from "@/src/types";
import { Receptionist } from "@/types";
import { getReceptionistData, getPendingAppointments } from "@lib/receptionist";
import { MonthlyVisitors, PatientTabs } from "./components";

Expand Down
2 changes: 1 addition & 1 deletion src/app/api/patient/appointment/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dbConfig from "@lib/db";
import { bookingAppointment } from "@/src/types";
import { bookingAppointment } from "@/types";
import { decrypt } from "@sessions/sessionUtils";
import { ObjectId } from "mongodb";
import { sendEmail } from "@lib/email";
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/patient/update-profile/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { User } from "@/src/types";
import { User } from "@/types";
import dbConfig from "@lib/db";
import { decrypt } from "@sessions/sessionUtils";

Expand Down
2 changes: 1 addition & 1 deletion src/app/api/transactions/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dbConfig from "@lib/db";
import { Transaction } from "@/src/types";
import { Transaction } from "@/types";
import { ObjectId } from "mongodb";

// saving transaction details in db
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/headbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Link from "next/link";
import { Button, Divider, User } from "@nextui-org/react";
import { CiLogin } from "react-icons/ci";
import { GoPlus } from "react-icons/go";
import { User as UserType } from "@/src/types";
import { User as UserType } from "@/types";
import { logoutAction } from "@lib/actions";
import Notifications from "../notifications";

Expand Down
Binary file removed src/app/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib/emails/templates.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UserLog, bookingAppointment } from "@/src/types";
import { UserLog, bookingAppointment } from "@/types";
import { Html } from "@react-email/html";
import { getCurrentDateFormatted } from "@utils/getDate";
import React from "react";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/patient/bookAppointment.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use server";
import { bookingAppointment } from "@/src/types";
import { bookingAppointment } from "@/types";
import { getSessionToken } from "../sessions/sessionUtils";
import getBaseUrl from "@utils/getBaseUrl";

Expand Down

0 comments on commit a060904

Please sign in to comment.