Skip to content

Commit

Permalink
feat: added placeholders to text fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Dec 17, 2023
1 parent 35f0b73 commit e7932db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/filters/FilterOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const RegexFilterOptions: VFC<FilterOptionsProps<'regex'>> = ({ index, setContai
return (
<Field
label="Regex"
description={<TextField value={filter.params.regex} onChange={onChange} />}
description={<TextField value={filter.params.regex} placeholder="Input a Regular Expression" onChange={onChange} />}
/>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/EditTabModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const EditTabModal: VFC<EditTabModalProps> = ({ closeModal, onConfirm, ta
const [patchInput, setPatchInput] = useState<boolean>(true);
const [autoHide, setAutoHide] = useState<boolean>(_autoHide);

const nameInputElement = <TextField value={name} onChange={onNameChange} />;
const nameInputElement = <TextField value={name} placeholder="The title for this tab" onChange={onNameChange} />;

//reference to input field class component instance, which has a focus method
let inputComponentInstance: any;
Expand Down
1 change: 1 addition & 0 deletions src/components/modals/ListSearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const ListSearchModal: VFC<ListSearchModalProps> = ({ rgOptions: list, en
<div style={{ width: "100%" }}>
<TextField
value={query}
placeholder={`Search ${entryLabel}...`}
onChange={(e) => { setQuery(e.target.value); }}
style={{ height: "100%" }}
/>
Expand Down

0 comments on commit e7932db

Please sign in to comment.