From d105694592221fb1ca9da218b79f5e58844be6dc Mon Sep 17 00:00:00 2001 From: samau3 Date: Sun, 20 Oct 2024 23:35:38 -0700 Subject: [PATCH] Switch to using classNames and CSS modules for performance --- .../patients/register/inputs/RegisterPhysician.jsx | 13 ++++++------- .../register/inputs/RegisterPhysician.module.css | 8 ++++++++ 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 client/src/pages/patients/register/inputs/RegisterPhysician.module.css diff --git a/client/src/pages/patients/register/inputs/RegisterPhysician.jsx b/client/src/pages/patients/register/inputs/RegisterPhysician.jsx index 35f894f2..8392f597 100644 --- a/client/src/pages/patients/register/inputs/RegisterPhysician.jsx +++ b/client/src/pages/patients/register/inputs/RegisterPhysician.jsx @@ -16,6 +16,8 @@ import { useMutation } from '@tanstack/react-query'; import LifelineAPI from '../../LifelineAPI.js'; import { StatusCodes } from 'http-status-codes'; +import classes from './RegisterPhysician.module.css'; + const registerPhysicianProps = { setPhysician: PropTypes.func.isRequired, registerPhysicianOpened: PropTypes.bool.isRequired, @@ -180,18 +182,15 @@ export default function RegisterPhysician({

Are you sure you want to close this form without submitting?