Skip to content

Commit

Permalink
fix: name helpers function
Browse files Browse the repository at this point in the history
  • Loading branch information
NasgulNexus committed Oct 30, 2023
1 parent 868a5ac commit 7603a3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/PasswordInput/PasswordInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -48,7 +48,7 @@ export const PasswordInput: React.FC<PasswordInputProps> = (props) => {
setHideValue((hideValue) => !hideValue);
};

const {copyButtonSize, iconSize} = getCopyButtonSizeAndIconButtonSize(size);
const {copyButtonSize, iconSize} = getCopyButtonSizeAndIconSize(size);

return (
<div className={b('additional-right-content')}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/PasswordInput/utils.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 7603a3d

Please sign in to comment.