Skip to content

Commit 2d3e978

Browse files
committed
removed unused import
1 parent 522523e commit 2d3e978

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/components/AutoSuggestion/AutoSuggestion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export interface AutoSuggestionProps {
164164

165165
/** If this is enabled the value of the editor is replaced with the initialValue if it changes.
166166
* FIXME: This property is a workaround for some "controlled" usages of the component via the initialValue property. */
167-
reInitOnInitialValueChange?: boolean
167+
reInitOnInitialValueChange?: boolean;
168168
}
169169

170170
// Meta data regarding a request
@@ -196,7 +196,7 @@ const AutoSuggestion = ({
196196
validationRequestDelay = 200,
197197
mode,
198198
multiline = false,
199-
reInitOnInitialValueChange = false
199+
reInitOnInitialValueChange = false,
200200
}: AutoSuggestionProps) => {
201201
const value = React.useRef<string>(initialValue);
202202
const cursorPosition = React.useRef(0);

src/components/CodeAutocompleteField/CodeAutocompleteField.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ import React from "react";
22

33
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
44
import AutoSuggestion, { AutoSuggestionProps } from "../AutoSuggestion/AutoSuggestion";
5-
import Spinner from "../Spinner/Spinner";
65

7-
export interface CodeAutocompleteFieldProps extends AutoSuggestionProps {
8-
9-
}
6+
export interface CodeAutocompleteFieldProps extends AutoSuggestionProps {}
107

118
/**
129
* Input component that allows partial, fine-grained auto-completion, i.e. of sub-strings of the input string.
@@ -16,8 +13,10 @@ export interface CodeAutocompleteFieldProps extends AutoSuggestionProps {
1613
*/
1714
export function CodeAutocompleteField({ className, ...otherProps }: CodeAutocompleteFieldProps) {
1815
// Currently this works only as an alias element for `AutoSuggestion`.
19-
return <AutoSuggestion
16+
return (
17+
<AutoSuggestion
2018
className={`${eccgui}-codeautocompletefield` + (className ? ` ${className}` : "")}
2119
{...otherProps}
2220
/>
21+
);
2322
}

0 commit comments

Comments
 (0)