Skip to content

Commit

Permalink
updated type of event
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Oct 15, 2024
1 parent 95107c4 commit 710754e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Common/TemperatureFormField.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useEffect } from "react";
import { FormFieldBaseProps } from "../Form/FormFields/Utils";
import { FieldChangeEvent, FormFieldBaseProps } from "../Form/FormFields/Utils";
import { fahrenheitToCelsius, celsiusToFahrenheit } from "@/Utils/utils";
import CareIcon from "../../CAREUI/icons/CareIcon";
import ButtonV2 from "./components/ButtonV2";
Expand Down Expand Up @@ -41,7 +41,7 @@ export default function TemperatureFormField({
}
};

const handleInputChange = (e: any) => {
const handleInputChange = (e: FieldChangeEvent<string>) => {
const newValue = e.value;

const regex = /^-?\d*\.?\d{0,1}$/;
Expand Down

0 comments on commit 710754e

Please sign in to comment.