Skip to content

Commit

Permalink
refactor(designer): Removed unused singleline editor plugin (#4379)
Browse files Browse the repository at this point in the history
* update the whole token instead

* remove unused singleLine plugin
  • Loading branch information
Eric-B-Wu authored Mar 17, 2024
1 parent 4d0b914 commit 0b3d3ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
4 changes: 0 additions & 4 deletions libs/designer-ui/src/lib/editor/string/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ import type { BaseEditorProps, ChangeHandler } from '../base';
import { EditorWrapper } from '../base/EditorWrapper';
import { EditorChangePlugin } from '../base/plugins/EditorChange';
import type { ValueSegment } from '../models/parameter';
import SingleLine from './stringPlugins/SingleLine';
import { useState } from 'react';

export interface StringEditorProps extends BaseEditorProps {
singleLine?: boolean;
clearEditorOnTokenInsertion?: boolean;
editorBlur?: ChangeHandler;
}

export const StringEditor = ({
singleLine,
initialValue,
clearEditorOnTokenInsertion,
editorBlur,
Expand Down Expand Up @@ -41,7 +38,6 @@ export const StringEditor = ({
}}
onBlur={handleBlur}
>
{singleLine ? <SingleLine /> : null}
<EditorChangePlugin setValue={onValueChange} />
</EditorWrapper>
);
Expand Down

This file was deleted.

0 comments on commit 0b3d3ec

Please sign in to comment.