Skip to content

Commit

Permalink
export issue client side solved
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanptm committed Sep 22, 2024
1 parent f53fe7c commit b9b5819
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion client/components/models/admin/PatientProfileModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from "@/components/ui/alert-dialog";
import { Button } from "@/components/ui/button";
import { Card, CardContent } from "@/components/ui/card";
import IPatient from "@/types";
import { IPatient } from "@/types";
import { useChangeStatusAdmin } from "@/lib/hooks/admin/useAdminPatients";
import { toast } from "@/components/ui/use-toast";
import { Badge } from "@/components/ui/badge";
Expand Down
2 changes: 1 addition & 1 deletion client/components/models/patient/UpdateProfilePatient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { z } from "zod";
import { updateProfileFormValidation } from "@/components/forms/actions/userValidation";
import { zodResolver } from "@hookform/resolvers/zod";
import SubmitButton from "../../common/SubmitButton";
import IPatient from "@/types";
import { IPatient } from "@/types";
import CustomFormField from "../../common/CustomFormField";
import { FormFieldType } from "@/types/fromTypes";
import { BloodGroups, GenderOptions } from "@/constants";
Expand Down
2 changes: 1 addition & 1 deletion client/components/models/patient/UploadProfileModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useForm, SubmitHandler } from "react-hook-form";
import { z } from "zod";
import { zodResolver } from "@hookform/resolvers/zod";
import SubmitButton from "../../common/SubmitButton";
import IPatient from "@/types";
import {IPatient} from "@/types";
import { Input } from "../../ui/input";
import { toast } from "../../ui/use-toast";
import getCroppedImg from "@/lib/utils/cropImage";
Expand Down
2 changes: 1 addition & 1 deletion client/components/patient/profile/NavSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useState } from "react";
import Image from "next/image";
import { Card, CardContent } from "@/components/ui/card";
import IPatient from "@/types";
import {IPatient} from "@/types";
import UploadProfileModel from "@/components/models/patient/UploadProfileModel";
import { ButtonV2 } from "@/components/common/ButtonV2";

Expand Down
2 changes: 1 addition & 1 deletion client/components/view/table/PatientsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/com
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
import { useGetPatientsAdmin } from "@/lib/hooks/admin/useAdminPatients";
import Pagination from "@/components/navigation/Pagination";
import IPatient from "@/types";
import {IPatient} from "@/types";
import AdminPatientProfileModel from "@/components/models/admin/PatientProfileModel";
import { useRouter } from "next/navigation";
import TableSkeleton from "@/components/skeletons/TableSkelton";
Expand Down
2 changes: 1 addition & 1 deletion client/lib/api/appointment/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from "axios";
import { withTempBaseUrl } from "@/lib/utils/withTempBaseUrl";
import IAppointment, { AppointmentStatus } from "@/types";
import { IAppointment, AppointmentStatus } from "@/types";
import patientAxiosInstance from "../patient/authorizedRoutes";
import doctorAxiosInstance from "../doctor/authorizedRoutes";

Expand Down
2 changes: 1 addition & 1 deletion client/lib/api/patient/authenticationRoutes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from "axios";
import IPatient from "@/types";
import {IPatient} from "@/types";

const axiosInstance = axios.create({
baseURL: `${process.env.NEXT_PUBLIC_API_URL}/patient/auth`,
Expand Down
2 changes: 1 addition & 1 deletion client/lib/api/patient/authorizedRoutes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import IPatient from "@/types";
import {IPatient} from "@/types";
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from "axios";

const getAuthTokens = () => {
Expand Down
4 changes: 2 additions & 2 deletions client/lib/hooks/appointment/useAppointmentDoctor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import {
getAppointmentDetailsDoctor,
updateAppointmentStatusDoctor,
} from "@/lib/api/appointment";
import IAppointment, {
import {
IAppointment,
AppointmentStatus,
ErrorResponse,
IDoctor,
IExtendedAppointment,
IPatient,
MessageResponse,
PaginatedResult,
} from "@/types";
Expand Down
3 changes: 2 additions & 1 deletion client/lib/hooks/appointment/useAppointmentPatient.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import IAppointment, {
import {
AppointmentStatus,
ErrorResponse,
IExtendedAppointment,
MessageResponse,
PaginatedResult,
IAppointment,
} from "@/types";
import {
getAppointmentDetailsPatient,
Expand Down
2 changes: 1 addition & 1 deletion client/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export enum AppointmentType {
VIDEO_CONSULTING = "video-consulting",
IN_PERSON = "in-person",
}
export default interface IAppointment {
export interface IAppointment {
readonly _id?: string;
readonly doctorId?: string;
readonly patientId?: string;
Expand Down

1 comment on commit b9b5819

@vercel
Copy link

@vercel vercel bot commented on b9b5819 Sep 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.