Skip to content

Commit

Permalink
rename "inputValue" to "value"
Browse files Browse the repository at this point in the history
  • Loading branch information
hbhong committed Aug 4, 2023
1 parent 2c0ffd6 commit a13cb84
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ const InputCopy = forwardRef(
return '';
};
const doCopy = () => {
const inputValue = inputRef.current?.value || '';
copyToClipboard(inputValue);
setCopiedValue(inputValue);
const value = inputRef.current?.value || '';

Check warning on line 67 in packages/design-system/src/components/Form/Field/Input/Input.Copy.tsx

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

packages/design-system/src/components/Form/Field/Input/Input.Copy.tsx#L67

[@typescript-eslint/no-shadow] 'value' is already declared in the upper scope on line 24 column 4.
copyToClipboard(value);
setCopiedValue(value);
};
return (
<FieldPrimitive
Expand Down

0 comments on commit a13cb84

Please sign in to comment.