From b1db95ac923f3188a381222dce54e8337f1de474 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 15 Jun 2024 21:10:40 +0530 Subject: [PATCH] chore: lint --- src/components/atoms/KeyValuePair.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/atoms/KeyValuePair.tsx b/src/components/atoms/KeyValuePair.tsx index d42ffe6f..a681b782 100644 --- a/src/components/atoms/KeyValuePair.tsx +++ b/src/components/atoms/KeyValuePair.tsx @@ -6,9 +6,9 @@ interface KeyValueFormProps { valueLabel?: string; } -export const KeyValuePair = forwardRef(({keyLabel, valueLabel}: KeyValueFormProps, ref) => { +export const KeyValuePair = forwardRef(({ keyLabel, valueLabel }: KeyValueFormProps, ref) => { const [key, setKey] = React.useState(''); - const [value, setValue] = React.useState(''); + const [value, setValue] = React.useState(''); useImperativeHandle(ref, () => ({ getKeyValuePair() { return { key, value }; @@ -37,7 +37,7 @@ export const KeyValuePair = forwardRef(({keyLabel, valueLabel}: KeyValueFormProp value={value} onChange={(event: React.ChangeEvent) => { const num = Number(event.target.value); - if (isNaN(num)){ + if (isNaN(num)) { setValue(event.target.value); } else {