Skip to content

Commit 3be8a14

Browse files
tidy(ui): remove unused code
1 parent 4806c3e commit 3be8a14

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

Diff for: invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/inputs/StringFieldCollectionInputComponent.tsx

-36
Original file line numberDiff line numberDiff line change
@@ -107,42 +107,6 @@ export const StringFieldCollectionInputComponent = memo(
107107

108108
StringFieldCollectionInputComponent.displayName = 'StringFieldCollectionInputComponent';
109109

110-
type StringListItemContentProps = {
111-
value: string;
112-
index: number;
113-
onRemoveString: (index: number) => void;
114-
onChangeString: (index: number, value: string) => void;
115-
};
116-
117-
const StringListItemContent = memo(({ value, index, onRemoveString, onChangeString }: StringListItemContentProps) => {
118-
const { t } = useTranslation();
119-
120-
const onClickRemove = useCallback(() => {
121-
onRemoveString(index);
122-
}, [index, onRemoveString]);
123-
const onChange = useCallback(
124-
(e: ChangeEvent<HTMLInputElement>) => {
125-
onChangeString(index, e.target.value);
126-
},
127-
[index, onChangeString]
128-
);
129-
return (
130-
<Flex alignItems="center" gap={1}>
131-
<Input size="xs" resize="none" value={value} onChange={onChange} />
132-
<IconButton
133-
size="sm"
134-
variant="link"
135-
alignSelf="stretch"
136-
onClick={onClickRemove}
137-
icon={<PiXBold />}
138-
aria-label={t('common.remove')}
139-
tooltip={t('common.remove')}
140-
/>
141-
</Flex>
142-
);
143-
});
144-
StringListItemContent.displayName = 'StringListItemContent';
145-
146110
type ListItemContentProps = {
147111
value: string;
148112
index: number;

0 commit comments

Comments
 (0)