Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Nov 20, 2024
1 parent fae34fa commit c82b232
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Facility/FacilityHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import uploadFile from "@/Utils/request/uploadFile";
import useQuery from "@/Utils/request/useQuery";
import { sleep } from "@/Utils/utils";

import { PatientRegisterAuth } from "../Patient/PatientRegister";
import { patientRegisterAuth } from "../Patient/PatientRegister";

type Props = {
facilityId: string;
Expand Down Expand Up @@ -460,7 +460,7 @@ export const FacilityHome = ({ facilityId }: Props) => {
{CameraFeedPermittedUserTypes.includes(authUser.user_type) && (
<LiveMonitoringButton />
)}
{PatientRegisterAuth(authUser, facilityData, facilityId) && (
{patientRegisterAuth(authUser, facilityData, facilityId) && (
<ButtonV2
variant="primary"
ghost
Expand Down
4 changes: 2 additions & 2 deletions src/components/Patient/PatientRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ export const PatientRegister = (props: PatientRegisterProps) => {
!isLoading &&
facilityId &&
facilityObject &&
!PatientRegisterAuth(authUser, facilityObject, facilityId)
!patientRegisterAuth(authUser, facilityObject, facilityId)
) {
return <Error404 />;
}
Expand Down Expand Up @@ -1697,7 +1697,7 @@ export const PatientRegister = (props: PatientRegisterProps) => {
);
};

export function PatientRegisterAuth(
export function patientRegisterAuth(
authUser: UserModel,
facilityObject: FacilityModel | undefined,
facilityId: string,
Expand Down

0 comments on commit c82b232

Please sign in to comment.