Skip to content

Commit b6b71f1

Browse files
refactor(BaseInput): streamline imports and fix prop spreading
1 parent 77aba9a commit b6b71f1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

libs/ui-react/src/lib/Components/BaseInput/BaseInput.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
import {
2+
cn,
3+
useDisabledContext,
4+
useMergedRef,
5+
} from '@ledgerhq/lumen-utils-shared';
16
import {
27
useRef,
38
useId,
49
useState,
510
useCallback,
6-
ChangeEvent, PointerEvent
11+
ChangeEvent,
12+
PointerEvent,
713
} from 'react';
8-
import {
9-
cn,
10-
useDisabledContext,
11-
useMergedRef,
12-
} from '@ledgerhq/lumen-utils-shared';
1314
import { useCommonTranslation } from '../../../i18n';
1415
import { DeleteCircleFill } from '../../Symbols';
1516
import { InteractiveIcon } from '../InteractiveIcon';
@@ -193,8 +194,8 @@ export const BaseInput = ({
193194
label && 'pt-12 body-2',
194195
inputClassName,
195196
)}
196-
{...props}
197197
onChange={handleInput}
198+
{...props}
198199
/>
199200

200201
{label && (

libs/ui-react/src/lib/Components/Select/Select.figma.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
} from './Select';
1010
import { SelectItemData } from './types';
1111

12-
1312
const figmaSelectItems = [
1413
{ value: 'option1', label: 'Option 1' },
1514
{ value: 'option2', label: 'Option 2' },

0 commit comments

Comments
 (0)