diff --git a/src/components/PasswordInput/PasswordInput.tsx b/src/components/PasswordInput/PasswordInput.tsx index 4c2e7499..430f421a 100644 --- a/src/components/PasswordInput/PasswordInput.tsx +++ b/src/components/PasswordInput/PasswordInput.tsx @@ -6,7 +6,7 @@ import {Button, ClipboardButton, Icon, TextInput, TextInputProps, Tooltip} from import {block} from '../utils/cn'; import i18n from './i18n'; -import {getCopyButtonSizeAndIconButtonSize} from './utils'; +import {getCopyButtonSizeAndIconSize} from './utils'; import './PasswordInput.scss'; @@ -48,7 +48,7 @@ export const PasswordInput: React.FC = (props) => { setHideValue((hideValue) => !hideValue); }; - const {copyButtonSize, iconSize} = getCopyButtonSizeAndIconButtonSize(size); + const {copyButtonSize, iconSize} = getCopyButtonSizeAndIconSize(size); return (
diff --git a/src/components/PasswordInput/utils.ts b/src/components/PasswordInput/utils.ts index 5de1b7df..8418edba 100644 --- a/src/components/PasswordInput/utils.ts +++ b/src/components/PasswordInput/utils.ts @@ -1,6 +1,6 @@ import type {ButtonSize, InputControlSize} from '@gravity-ui/uikit'; -export const getCopyButtonSizeAndIconButtonSize = ( +export const getCopyButtonSizeAndIconSize = ( textInputSize: InputControlSize, ): {copyButtonSize: ButtonSize; iconSize: number} => { let copyButtonSize: ButtonSize = 's';