Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support adding/removing pipelines/post-processors #561

Merged
merged 18 commits into from
May 25, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions webapp/src/components/Settings/AutocompleteStringField.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Autocomplete, TextField } from "@mui/material";
import React from "react";
import { FieldProps, FIELD_COMMON_PROPS } from "./utils";

const AutocompleteStringField: React.FC<
FieldProps<string> & { label: string; options: string[]; disabled: boolean }
> = ({ value, onChange, label, options, disabled }) => (
<Autocomplete
freeSolo
options={options}
value={value}
disabled={disabled}
onChange={onChange && ((_, newValue) => onChange(newValue as string))}
renderInput={(params) => (
<TextField {...params} {...FIELD_COMMON_PROPS} label={label} />
)}
/>
);

export default React.memo(AutocompleteStringField);
Loading
Loading